1748035 Members
5135 Online
108757 Solutions
New Discussion юеВ

restart dns client?

 
SOLVED
Go to solution
doug mielke
Respected Contributor

restart dns client?

I was trying to fix an error in /etc/resolv.conf, and now DNS client cant connect to DNS server. I can ping it, but nslookup times out unless I remeove resolv.conf.
I moved my backup resolv.conf in place, same result.

Can I restart DNS client?
3 REPLIES 3
Jeff Schussele
Honored Contributor
Solution

Re: restart dns client?

Hi Doug,

There is no client SW per se & resolv.conf is just read for every lookup. Bring up nslookup w/o any parms

nslookup
Set the server IP manually - use the IP of your DNS server
>server xxx.xxx.xxx.xxx
Then lookup something
>hostname
If you get no response or an error, then the problem is on the DNS server itself. If you get the proper response then set that IP up in resolv.conf
A typical resolv.conf looks as follows:

domain subnet.company.com
search subnet.company.com subnet2.company.com
nameserver xxx.xxx.xxx.xxx
nameserver xxx.xxx.xxx.xxx

What was the error in resolv.conf in the first place, or what trouble were you having?

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
doug mielke
Respected Contributor

Re: restart dns client?

thanks.
I'll post details on Monday, but nutshell is, if I don't remove resolv.conf in my oracle startup script, my oracle wrb objects wont start. (same for stopping, ther're just not found)

and I am looking in 'files' 1st in all entries in the nsswitch file, ( just a copy of nsswitch.files with the addtion to go to dns for hosts if 'files' fails.
More on Monday, I have a DNS Server dragon to slay.
Patrick Wallek
Honored Contributor

Re: restart dns client?

What are the permissions on resolv.conf? Try setting to at least 444 and see if that helps.