Pages

Monday, February 20, 2012

DNS lookup in AIX

To configure AIX for use with DNS create the /etc/resolv.conf first:

# vi /etc/resolv.conf
domain example.com
nameserver 192.168.1.73

Then edit the file /etc/netsvc.conf (instead of /etc/nsswitch.conf like many other Unix like operating systems):

# vi /etc/netsvc.conf
...
hosts=local, bind

The first entry local will lookup in /etc/hosts for hosts. The second entry bind will use the given DNS server(s) in /etc/resolv.conf.