The hosts file change should be immediate. But AIX can be configured to look at DNS first and the hosts file second. Check the /etc/netsvc.conf file to see if "local" is listed first.
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.
I had the same problem and my new entry was the last line in the /etc/hosts file. I added a new blank line to the end of the file and magically it worked! :)
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
/etc/netsvc.conf
file to see if "local" is listed first.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.
I had the same problem and my new entry was the last line in the /etc/hosts file. I added a new blank line to the end of the file and magically it worked! :)