AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
  • 1.  Name resolution

    Posted Wed May 09, 2012 12:06 PM

    Originally posted by: dflatley


    We have a P750 with AIX 5.3 installed. There are two Ethernet cards in it, that connect to two different networks. With the resolv.conf below we can resolve whatever is first in the resolv.conf file (i.e. domain1). But nothing else. If I ping server1 I get nothing but if I ping server1.domain1 it works. I added hosts= local,bind to /etc/netsvr.conf. The system needs to be able to resolv the 172 nameserver. Am I missing something here??
    Thanks.

    nameserver 9.61.#.#
    nameserver 172.20.#.#
    nameserver 9.61.#.#
    domain domain1
    search domain1 domain2 domain3
    options debug
    options timeout:1
    options attempts:1
    options rotate
    #AIX-Forum


  • 2.  Re: Name resolution

    Posted Wed May 09, 2012 01:57 PM

    Originally posted by: HajoEhlers


    User either domain XOR search in your /etc/resolv.conf. Both at the same time is not supported.
    So the solution is to remove the "domain" entry. The first search entry is then THE domain for the host.
    #AIX-Forum


  • 3.  Re: Name resolution

    Posted Wed May 09, 2012 03:33 PM

    Originally posted by: dflatley


    I have both a P750 and P690 (with 2 LPAR's) that are having this issue, but both are in different locations so not on the same network. I took the domain out of the resolv.conf file on both systems. On the P690 both LPAR's can resolve the network first list but not the second listed. They can ping the hostname to the second network and the ping works. On the P750 it resolves the first network listed but not the second and it can not ping the hostnames on the second network.
    Further thoughts?
    #AIX-Forum


  • 4.  Re: Name resolution

    Posted Wed May 09, 2012 04:19 PM

    Originally posted by: dflatley


    I am finding that nslookup is not the best for testing this that host is a better command to test resolving.
    #AIX-Forum


  • 5.  Re: Name resolution

    Posted Thu May 10, 2012 03:28 AM

    Originally posted by: romeo_ninov


    Remove domain line from resolv.conf and check again
    #AIX-Forum


  • 6.  Re: Name resolution

    Posted Mon May 14, 2012 09:04 PM

    Originally posted by: ColombianJoker


    First, remove domain line as everybody here are saying.
    Second, check your /etc/netsvc.conf have valid values.
    Third, use dig, nslookup or host commands to check resolution, not ping. You can have resolution without echo_replies in ping, and you can have echo_replies in ping without name resolution.
    #AIX-Forum