1850463 Members
1530 Online
104054 Solutions
New Discussion

DNS Issue

 
Bala C
Frequent Advisor

DNS Issue

I recently upgraded a hpux 11.11 OS to hpux 11.23 and I copied all the necessary network configuration files like netconf,resolv.conf files from my 11.11 oS prior to the upgrade.

Now, My DNS is screwed up. I am unable to resolve hostnames using DNS.

#nslookup gmail.com
*** Can't find server name for address 206.229.143.20: No response from server
*** Can't find server name for address 206.229.138.20: No response from server
*** Can't find server name for address 206.229.135.31: No response from server
*** Default servers are not available
Using /etc/hosts on: hp11q1

looking up FILES
Trying DNS
*** can't find gmail.com: No response from server

#cat /etc/resolv.conf
domain hpqp.bell.com
search hpqp.bell.com
nameserver 206.229.143.20
nameserver 206.229.138.20
nameserver 206.229.135.31

Can anyone help me to resolv this issue?
9 REPLIES 9
Fabio Ettore
Honored Contributor

Re: DNS Issue

Hi Bala,

I'm not sure that is the problem, however you should have a unique first line in /etc/resolv.conf, I mean you should have or domain or search. If you have just a domain then just delete the line

"search hpqp.bell.com"

and retry the nslookup.

If this doesn't help please post what you get by the following steps:

# nslookup
>set all

HTH.

Best regards,
Fabio
WISH? IMPROVEMENT!
Steven E. Protter
Exalted Contributor

Re: DNS Issue

Shalom,

Make sure you can at least ping your nameservers

Then use nslookup or dig to run tests and post the responses.

They nameserver entries could be inaccessible or configured not to answer your network.

telnet 206.229.143.20 53

See what you get.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Pete Randall
Outstanding Contributor

Re: DNS Issue

> copied all the necessary network configuration files like netconf,resolv.conf

How about nsswitch.conf?


Pete

Pete
Bala C
Frequent Advisor

Re: DNS Issue

Hi Fabio,

This is the output after removing the search entry in the resolv.conf

#nslookup
*** Can't find server name for address 206.229.143.20: No response from server
*** Can't find server name for address 206.229.138.20: No response from server
*** Can't find server name for address 206.229.135.31: No response from server
*** Default servers are not available
Using /etc/hosts on: hp11q1

> set all
Set options:
noswtrace querytype=A

#Lookups = 2
files [RCCC] dns [RRRR]

Default Name Server:

Default NIS Server:

Default files Server: hp11q1

> exit
#cat /etc/resolv.conf
domain hpqp.bell.com
nameserver 206.229.143.20
nameserver 206.229.138.20
nameserver 206.229.135.31
Fabio Ettore
Honored Contributor

Re: DNS Issue

Hi,

ok, it really sounds like you cannot neither ping your DNS servers. Try what Steven suggested (ping 206.229.143.20 and telnet 206.229.143.20 53). If they don't response then it's a more general issue about networking. For example are you sure to have configured routing to that network?

Best regards,
Fabio
WISH? IMPROVEMENT!
Bala C
Frequent Advisor

Re: DNS Issue

Hi Steven,

I am unable to a ping as it is blocked by firewall.

But telnet to port 53 of my DNS server failed.

#telnet 206.229.143.20 53
Trying...
telnet: Unable to connect to remote host: Network is unreachable
#dig gmail.com

; <<>> DiG named 9.2.0 <<>> gmail.com
;; global options: printcmd
;; connection timed out; no servers could be reached

Here is the output of nsswitch.conf :-

passwd: files
group: files
hosts: files [NOTFOUND=continue] dns
ipnodes: files
services: files
networks: files
protocols: files
rpc: files
publickey: files
netgroup: files
automount: files
aliases: files

BUPA IS
Respected Contributor

Re: DNS Issue

Hello,
Since the network for the DNS servers is unreachable here are somethings you might like to check -

Did you fix the gateways in /etc/rc.config.d/netconf ?
Does netstat -rn show a default gateway ?
How far does a traceroute get ?

Presuming that the new server is using the same ip address as the old one it is possible that the fire wall arp cache may need to be flushed .

regards
Mike.







Help is out there always!!!!!
Avinash20
Honored Contributor

Re: DNS Issue

Are you able to ping the gateway.
You could try disabling the dead gateway and check

# ndd -set /dev/ip ip_ire_gw_probe 0

Output of

netstat -rn

>> Have your copied nddconf file from 11iv1 to 11iv2 ??
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Bala C
Frequent Advisor

Re: DNS Issue

Thanks, Avinash.

I finally copied the nddcong file from 11i v1 to 11i v2. That resolved the issue.