Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Query regarding DNS suffix

Posted on 2009-04-05
7
Medium Priority
?
342 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
7 Comments
 
LVL 8

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 8

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
Looking for the Wi-Fi vendor that's right for you?

We know how difficult it can be to evaluate Wi-Fi vendors, so we created this helpful Wi-Fi Buyer's Guide to help you find the Wi-Fi vendor that's right for your business! Download the guide and get started on our checklist today!

 
LVL 8

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 71

Accepted Solution

by:
Chris Dent earned 2000 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 71

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

Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

Question has a verified solution.

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

One of the most often confused topics in the area DNS is the idea of GLUE records. Specifically, what they are, when they are needed, when they are provided, and how they are created. First, WHAT IS GLUE? To understand GLUE, you must first under…
Occasionally you run into the website or two that will not resolve properly using your own DNS servers.  Some people simply set up global forwarders for their DNS server.  I don’t recommend doing this because it can cause problems resolving addresse…
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…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

721 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