Networking
cancel
Showing results for 
Search instead for 
Did you mean: 

DNS client unable to fetch IP addresses

DNS client unable to fe
Occasional Visitor

DNS client unable to fetch IP addresses

Hi,

I have set DNS server installed on RHEL4 which maps IPv6 and IPv4 addresses of each Client

IF this server set on Windows or Linux RL5
and run nslookup -type=any Windows/Linux
It return both Ipv6 and IPv4 addresses as follows


[root@test33 ~]# nslookup -type=any test33
Server: 333.24.36.74
Address: 333.24.36.74#53

Name: test33.myipv6.com
Address: 333.24.38.61
Name: test33.myipv6.com
Address: 333.24.36.35
test33.myipv6.com has AAAA address fc00::9255:214:4fff:fe9a:7c61
test33.myipv6.com has AAAA address 4500::9255:214:4fff:fe9a:7c60
test33.myipv6.com has AAAA address 4500::9255:214:4fff:fe9a:7c61
test33.myipv6.com has AAAA address fc00::9255:214:4fff:fe9a:7c60

but I'm unable lookup from HP client
heres what error we got

bash-4.0# nslookup -type=any sigt33
*** Can't find server name for address 10.217.36.74: Non-existent domain


I could able to ping DNS with IPv4 address
verified /etc/resolv.conf its replica of linux client

I could able to nslookup public domain machine with necessary changes in resolve .conf

And on AIX we could only lookup IPv4 addresses
7 REPLIES
rick jones
Honored Contributor

Re: DNS client unable to fetch IP addresses

It would appear that the nslookup in your first example either does not try, or does not care there is no PTR record from the (obfuscated by hand?) IP address of the DNS server to a name.

The HP-UX nslookup (which HP-UX version BTW) is at least a triffle picky about that, and is complaining it cannot resolve the IP address of the DNS server to a name.
there is no rest for the wicked yet the virtuous have no pillows
DNS client unable to fe
Occasional Visitor

Re: DNS client unable to fetch IP addresses

Here is version of HP
HP-UX XXX B.11.31 U ia64 1789438123 unlimited-user license
rick jones
Honored Contributor

Re: DNS client unable to fetch IP addresses

The simplest thing to do would be to configure the DNS server with a PTR record to map its IP address to a name. That will make the HP-UX nslookup command happy. Otherwise, using something other than HP-UX nslookup for DNS diagnostics would be in order.

(In case it wasn't clear from between the lines, nslookup is not the same on all platforms...so, just because nslookup on one platform "works" does not mean that nslookup on another platform will be happy)
there is no rest for the wicked yet the virtuous have no pillows
DNS client unable to fe
Occasional Visitor

Re: DNS client unable to fetch IP addresses

I'm wondering host works fine but nslookup fails

bash-2.02# nslookup test33
*** Can't find server name for address 10.217.36.74:Non-existent host/domain
*** Can't find server name for address 10.217.37.229:No response from server
*** Default servers are not available

bash-4.0# host test33
test33.myipv6.com has address 10.217.38.64
test33.myipv6.com has address 10.217.36.133
test33.myipv6.com has myipv6 address 2000::9255:211:25ff:fec5:75b6
test33.myipv6.com has myipv6 address 2000::9255:211:25ff:fec5:75b7

bash-4.0# host 2000::9255:211:25ff:fec5:75b6
6.b.5.7.5.c.e.f.f.f.5.2.1.1.2.0.5.5.2.9.0.0.0.0.0.0.0.0.0.0.0.2.ip6.arpa domain name pointer test33.myipv6.com.

bash-4.0# host 10.217.36.133
133.36.217.10.in-addr.arpa domain name pointer test33.myipv6.com.

bash-4.0# grep hosts /etc/nsswitch.conf
hosts: dns [NOTFOUND=return] nis [NOTFOUND=return] files
bash-4.0# grep ipnodes /etc/nsswitch.conf
ipnodes: dns [NOTFOUND=return] nis [NOTFOUND=return] files
rick jones
Honored Contributor

Re: DNS client unable to fetch IP addresses

The nslookup in HP-UX is particularly picky about being able to reverse-map the DNS servers' IP address(es) to names. If it cannot do that, it gets grumpy and refuses to work.
there is no rest for the wicked yet the virtuous have no pillows
Viktor Balogh
Honored Contributor

Re: DNS client unable to fetch IP addresses

Maybe try it with dig or nsquery on HP-UX...
****
Unix operates with beer.
DNS client unable to fe
Occasional Visitor

Re: DNS client unable to fetch IP addresses

tried with nsquery it returns only IPv6 addresses

bash-4.0# nsquery hosts test33.myipv6.com "dns [NOTFOUND=return] files"

Using "dns [NOTFOUND=return] files" for the hosts policy.

Searching dns for test33.myipv6.com
Hostname: test33.myipv6.com
Aliases:
Address: 10.217.38.61 10.217.36.35
Switch configuration: Terminates Search