Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

My linux server can not resolve some domains. I have to restart NAMED service to fix it. Is there any permanent solution for this?

share|improve this question

migrated from stackoverflow.com Oct 2 '13 at 10:11

This question came from our site for professional and enthusiast programmers.

    
Yes, make sure you have a DNS server set up that your server can see. –  Oliver Charlesworth Sep 25 '13 at 7:10
1  
Stackoverflow is for help with coding. Questions on infrastructure are best posted to Serverfault. –  Arjun Sol Sep 25 '13 at 7:10

2 Answers 2

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.

share|improve this answer
up vote 0 down vote accepted

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

share|improve this answer
    
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. –  behzad safamanesh Sep 25 '13 at 7:22
    
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. –  linux_fanatic Sep 25 '13 at 7:36

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.