Configure DNS on AIX

Configure DNS

To configure DNS on an AIX server:

Add the DNS server(s) to the /etc/resolv.conf configuration file:

vi /etc/resolv.conf

Add or update line(s) for each DNS server, one per line, as shown in the example below:


Enable DNS in the /etc/netsvc.conf configuration file:

vi /etc/netsvc.conf

At the bottom of the file, comment out the existing hosts entry, and add one that enables name lookups via DNS (aka bind), as shown in the example below:


Disabling DNS

If DNS is enabled but not working properly, you may see issues such as delayed OS logins or JBoss not starting correctly. To troubleshoot these and similar issues, we recommend that you temporarily disable DNS and try recreating the problem.

First, comment out any entries in the /etc/resolv.conf file:

vi /etc/resolv.conf

Then, change the hosts line in the /etc/netsvc.conf back to use only the local /etc/hosts file for lookups, as shown in the example below:

vi /etc/netsvc.conf

Troubleshooting DNS

To test whether or not DNS is working, you can try pinging an Internet address or looking up names, as shown in the examples below:


You should also verify that your Eclipse server is configured with a fully-qualified domain name (FQDN) that can be looked up via both its name and IP address. For example, a server with the hostname and an IP address of should show now errors when running nslookups on both entries:

nslookup eclipse