How to Configure DNS on AIX

Configure DNS on AIX

  • 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:

    nameserver 192.168.1.100
    nameserver 192.168.1.101
    

    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:

    #hosts=local
    hosts=local,bind
    

  • 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
    
    #nameserver 192.168.1.1
    

    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
    
    hosts=local
    #hosts=local,bind
    

  • 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:

    ping epicor.com
    nslookup epicor.com
    

    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 eclipse.customername.com and an IP address of 192.168.1.100 should show now errors when running nslookups on both entries:

    nslookup eclipse
    nslookup eclipse.customername.com
    nslookup 192.168.1.100
    

    Ref:

    Configure DNS on AIX

    This entry was posted in AIX and tagged , , , , , . Bookmark the permalink.

    Leave a Reply

    This site uses Akismet to reduce spam. Learn how your comment data is processed.