Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have some domain registered with enom.com . From time to time I will do an nslookup domainname.com I get the IP address, however when I put nslookup www.domainname.com it responds can't find www.domainname.com : server failed

After restarting Named I get the same error for domainname.com and www.domainname.com is working as expected

Has any one has seen this issue ?

EDIT : please note the problem is changing between both status . and i am restarting the main name server in our network and the mentioned domain is hosted in another server ...........

share|improve this question
1  
Could you edit you question to include your zone file and named's error log ? –  François Feugeas Nov 5 '09 at 15:06

2 Answers 2

up vote 1 down vote accepted

declare your www subdomain as a CNAME to your A - example of bind9 configs below:

--- named.conf

*SNIP*
zone "domainname.com" {
     type master;
     file "/etc/bind/domainname.com";
     allow-update { none; };
};

--- /etc/bind/domainname.com

*SNIP*
@       IN      A       xxx.xxx.xxx.xxx
www     IN      CNAME   @

Notes:

  • xxx.xxx.xxx.xxx is your IP address (for the domain)

  • there are some parts missing from configs (in the place of SNIP); added only the interesting bits

Kaplah.

share|improve this answer

Have you actually got a www in your zone file? Just having the name (and the root working) isn't enough to make the www sub domain work.

share|improve this answer

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.