Closed michaelklishin closed 4 years ago
Backported to v3.8.x
.
@michaelklishin these will be handy commands, thanks!
$ cat ~/.erl_inetrc
{host, {192, 168, 1, 5}, ["shostakovich"]}.
$ ERL_INETRC="/home/lbakken/.erl_inetrc" ./sbin/rabbitmq-diagnostics resolver_info --offline
Displaying effective hostname resolver (inetrc) configuration used by CLI tools...
Runtime Hostname Resolver (inetrc) Settings
Lookup order: native
Hosts file: /etc/hosts
Resolver conf file: /etc/resolv.conf
Cache size:
inetrc File Host Entries
192.168.1.5 shostakovich
Helps with troubleshooting host name resolution behavior on nodes and locally for CLI tools:
This is obviously not meant to be a replacement for existing tools such as dig, only a way to quickly spot obvious irregularities, e.g. those in environments that use custom Erlang inetrc files.
Per discussion @harshac.