Operating System - HP-UX
1752666 Members
5663 Online
108788 Solutions
New Discussion юеВ

Re: DNS Not resolving internal

 
Ayanda
Occasional Contributor

DNS Not resolving internal

This is a /etc/nsswitch.conf file
hosts: dns files
protocols: files[NOTFOUND=return UNAVAIL=continue]
services: files
[NOTFOUND=return UNAVAIL=continue]
networks: files[NOTFOUND=return UNAVAIL=continue]
netgroup: files[NOTFOUND=return UNAVAIL=continue]
rpc: files[NOTFOUND=return UNAVAIL=continue]

This is my /etc/resolv.conf file

domain ect.com
nameserver 172.23.123.1 # mail

What could be wrong ?
If anyone is in Christ , he is a new creature the Old has gone , The new has come
3 REPLIES 3
Steve Steel
Honored Contributor

Re: DNS Not resolving internal

Hi

nsswitch hosts line . use

hosts : dns [NOTFOUND=continue] files


resolv.conf

try adding search line

search localdomain remotedomain


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Sukant Naik
Trusted Contributor

Re: DNS Not resolving internal

Hi,

Why dont you change the hosts entry to first check for hosts file and then the DNS server ?

hosts: files[NOTFOUND=continue UNAVAIL=continue] dns

Hope tjis helps.
-Sukant
Who dares he wins
steven Burgess_2
Honored Contributor

Re: DNS Not resolving internal

Hi

I think Steve has got it with your /etc/resolv.conf entry. It should be something like

search ect.com

nameserver 172.23.123.1 # mail

And, the recommended way for your /etc/nsswitch.conf is to attempt to resolve locally first before contacting dns

hosts: files [NOTFOUND=continue] dns

If your hosts are added to the /etc/hosts this will speed up resolution as dns will not have to be contacted

HTH

Steve
take your time and think things through