How to reload /etc/hosts file in AIX without reboot? I am trying to ping a new entry but it still shows previous version. Thanks
Flush the netcd DNS cache:
Hostname lookup order is determined using /etc/irs.conf, /etc/netsvc.conf and then $NSORDER.
Keep in mind though, that irs.conf and $NSORDER are typically not used.
The hosts file change should be immediate. But AIX can be configured to look at DNS first and the hosts file second. Check the
If you are running named on the server you may need to restart it for DNS lookups... but the hosts file isn't normally cached anywhere.