1
My linux server can not resolve some domains. I have to restart NAMED service to fix it. Is there any permanent solution for this?
1
My linux server can not resolve some domains. I have to restart NAMED service to fix it. Is there any permanent solution for this?
0
named and bind service are used for dns resolution, so you have to start them to resolve the domains from your linux server. The permanent solution is to keep the named service on at any runlevel. You can achieve this by the following command :-
$ chkconfig named on
Thanks & Regards,
Alok Thaker
Hi.Thanks for your reply. but the service is always on. and this will not happen to every domains. for example, domain yahoo.com is not resolving. so i have to restart named service to fix it. some hours later, this will happen again and yahoo.com is not resolving. – None – 2013-09-25T07:22:41.000
If you are not able to resolve some of the domains then you can keep your dns to google public dns in /etc/resolv.conf as nameserver 8.8.8.8 and nameserver 8.8.4.4. You can also check with your ISP that why some of the domains are not getting resolved too. Do you have a router whose DNS you are using then check the router dns settings are correctly set as per ISP or ask them for support. – None – 2013-09-25T07:36:31.047
1
Tips:
1), Make sure the domains you needed is configured in your BIND's named.conf;
2), Make sure your named.conf is correct, using named-checkconf to check configuration, or ask for bind's log for correction;
3), Use dig @your_named_ip your_domain
to see if your domains can be resolved;
4), if 3) is correct, add nameserver your_named_ip
into your linux server's /etc/resolv.conf.
Yes, make sure you have a DNS server set up that your server can see. – Oliver Charlesworth – 2013-09-25T07:10:10.193
1Stackoverflow is for help with coding. Questions on infrastructure are best posted to Serverfault. – None – 2013-09-25T07:10:39.480