Solaris: Prevent reverse DNS lookups except by using /etc/hosts

domain-name-systemnamenetworkingsolarisunix

When running commands like netstat or snoop,, I would like not to reverse lookup because there are cases when either the number converts to name which converts to different number or the number converts to name which converts to multiple or unpredictable numbers.

However,, I still would like reverse lookups to continue for items in /etc/hosts

Best Answer

i think if it was like linux in /etc/resolv.conf you have entry

order hosts,bind

hosts is to try hosts first, bind is to fallback on dns if /etc/hosts didnt succeed