Operating System - Linux
1819882 Members
2660 Online
109607 Solutions
New Discussion юеВ

DNS Service Fail to Restart

 
SOLVED
Go to solution
Sakui
Frequent Advisor

DNS Service Fail to Restart


Hi All,

I am using a Redhat Linux 9. I comfigured my DNS and was working properly but when i kill the process and decide to restart the service, i got an error saying "named failed error was stopping named rndc connection fail.or rndc could't find localhost name serice unknown.Friend ,i am trying to configure a Apache. I know i need to configure the dns before going ahead.If you have any advice tell.If you know of any site that will be help please show me the link.
4 REPLIES 4
Vitaly Karasik_1
Honored Contributor

Re: DNS Service Fail to Restart

In fact, you don't need *DNS server* in order to work, you just need to configure your resolver - /etc/resolv.conf
Kodjo Agbenu
Honored Contributor
Solution

Re: DNS Service Fail to Restart

Hi,

Could you please check /etc/hosts ? Sometimes services fail to start when the loopback (127.0.0.1) cannot resolve properly.

Good lcuk.
Kodjo
Learn and explain...
Ivan Ferreira
Honored Contributor

Re: DNS Service Fail to Restart

When you do service restart, the script run the stop process and the start process.

If you killed dns before, then the stop process won't find the named process to stop, and maybe that's why you are getting that error.

Also, rndc will give you an error if cannot contact the DNS service. So, when you kill the DNS service, run only start, not restart.

Also, would be interesting view the /var/log/messages file when you try to do the start/restart process.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Sakui
Frequent Advisor

Re: DNS Service Fail to Restart



what i experience was that when i make changes to the file i should rather restart then reload.