Solved

Query regarding DNS suffix

Posted on 2009-04-05
7
336 Views
Last Modified: 2012-05-06
Hi All

My domain is uk.kam.com. I am running Windows XP machines with Windows 2003 servers.

Most servers are configured in DNS as server1.uk.kam.com  = i.e. with their full FQDN.

I notice that on some servers, if I enter http://server1 (or ping server1), then I get a reply back from server1.uk.kam.com (i.e with the full domain name)

What is it that I have on my local PC settings that states my machine is already in the uk.kam.com DNS domain, and therefore I don't always have to enter the suffix?
0
Comment
Question by:kam_uk
  • 3
  • 2
  • 2
7 Comments
 
LVL 7

Expert Comment

by:FOTC
ID: 24072506
set up a DNS CNAME in your DNS server(s).

give it the name u want ie:  kam    then point it to the A Record of the server you want.

0
 
LVL 7

Expert Comment

by:FOTC
ID: 24072512
0
 
LVL 3

Author Comment

by:kam_uk
ID: 24072698
Sorry - I think I didn't explain this properly..

Basically, the question is why I don't have to ping a server by its FQDN to get a response.
0
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 
LVL 7

Expert Comment

by:FOTC
ID: 24072753
im not quite sure i understand what you are asking.

if you want to be able to ping server1 and get a reply, you need to set up a cname record in dns.

when a server is joined to the domain, it creates a host record (A). which corresponds to it's ip address. you can then ping the server by its name and it will reply back with its fqdn appended to the end of the name.
0
 
LVL 70

Accepted Solution

by:
Chris Dent earned 500 total points
ID: 24075581

> What is it that I have on my local PC settings that states my machine is already in the uk.kam.com
> DNS domain, and therefore I don't always have to enter the suffix?

Either the Primary DNS Suffix, or the DNS Suffix Search List. Both are visible if you run "ipconfig /all".

The client, when it requests a name, will append each of its listed suffixes to the query before it requests just a name.

That is, if your client has these suffixes:

Primary DNS Suffix: uk.kam.com
DNS Suffix Search List: usa.kam.com
                                     nz.kam.com

And it makes a request for "server1". It will make these requests when attempting to resolve the name:

server1.uk.kam.com
server1.usa.kam.com
server1.nz.kam.com

It will stop the moment it gets a response that isn't "NXDOMAIN" (does not exist). You will find the same behaviour when looking up public domains such as www.google.com. e.g.:

www.google.com.uk.kam.com
www.google.com.usa.kam.com
www.google.com.nz.kam.com
www.google.com

Note that it only tried www.google.com at the end.

If you'd like to see this behaviour you can by running:

nslookup
set debug
www.google.com

Take a look through each of the "QUESTIONS" in the output, you will see that it appends each suffix as described above. If you were to watch the network traffic for this you would see your DNS server providing a response as well (should be NXDOMAIN until the last one).

Chris
0
 
LVL 3

Author Comment

by:kam_uk
ID: 24075794
Hello Chris,

Thanks for the excellent answer.

Just one query..

Let's say my PC is set up as below;

Primary DNS Suffix: uk.kam.com
DNS Suffix Search List: usa.kam.com
                                     nz.kam.com

I have servers at;

server1.uk.kam.com, server1.usa.kam.com, server1.nz.kam.com

Would I be correct in saying that if I ping "server1", the inital response will be from the UK server? If the UK server didn't exist, the response would be from the USA server since that is higher in the DNS Suffix search list than the NZ one?

Also, what if Server1.uk.kam.com *was* registered in DNS but was offline? I assume the ping response would still be from the UK one, not the US. I would only get a response from the US server is the UK one did not actually exist in DNS?

Thanks again.

 
0
 
LVL 70

Expert Comment

by:Chris Dent
ID: 24075819

> If the UK server didn't exist, the response would be from the USA server since that is higher in
> the DNS Suffix search list than the NZ one?

Yes. That is correct.

> Also, what if Server1.uk.kam.com *was* registered in DNS but was offline?

The Ping would time-out but the DNS lookup would succeed.

DNS doesn't care whether a resource is up or down, only if it has a valid record. If it does have a valid record it will return that to the client. So...

> I would only get a response from the US server is the UK one did not actually exist in DNS?

That's correct as well :)

Chris
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Excessive tcp resends from my ASA 7 66
Windows Service to Receive TCP Packets 4 144
DNS Settings for Domain controllers 22 109
Expanding Subnet Mask 20 103
I've written instructions for one router type, but this principle may be useful for others of the same brand and even other brands of router. Problem: I had an issue especially with mobile devices that refused to use DNS information supplied via…
Network ports are the threads that hold network communication together. They are an essential part of networking that can be easily ignore or misunderstood, my goals is to show those who don't have a strong network foundation how network ports opera…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now