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 found a domain name which gives different results for following dig commands. Lets assume the domain name is domain.com.


dig domain.com
dig www.domain.com

Is anyone know what are the reasons for getting different results for this queries?

share|improve this question
Of course you get different results. Those are two different domain names. –  EEAA Jan 3 '13 at 5:03
More Specifically two different FQDNs.... –  mdpc Jan 3 '13 at 5:06
Very nice question. –  Buttle Butkus Jan 3 '13 at 10:21

2 Answers 2

up vote 1 down vote accepted

They're two different queries, why should they give the same results?

share|improve this answer
My apologies if it is a silly question. I'm new to this DNS stuff. I can understand that we can host DNS domain.com, but I believe that we cannot host another DNS like www.domain.com. Is that right or wrong? I have only seen www.domain.com things as aliases in web servers which pointing by domain.com dns record. –  Yasiru G Jan 3 '13 at 5:20
Your understanding is incorrect. They're two different names, as different as co.uk and guardian.co.uk. The DNS system doesn't care about conventions about how the com TLD or www host name is used. –  David Schwartz Jan 3 '13 at 5:22

One is a domain and the other is a subdomain. The fact thet they very often do have the same address doesn't mean they have to.

share|improve this answer

Your Answer


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.