Posted on 2011-02-23
Medium Priority
Last Modified: 2012-05-11
Does DNS take precedent over WINS?

I have a 2K3 domain with Windows XP machines. I have DNS servers on my domain controllers. I only have one WINS server. Just as an Example, if I have an entry in the clients Host file and then the same entry in the clients Lmhosts file but with a different IP. Does DNS take precedent over anything in the LMHOST file?

Question by:AGenMIS
LVL 12

Expert Comment

ID: 34962049
No, Host files will be taking the precedence but why you want to use such a setup.

Author Comment

ID: 34962151
We're in a weird setup. Our field users have lmhost entries that point to our servers IP Address (External IPs that NATS through our firewall). When they are in one of our offices, their lmhost files still contain those IPs that point to our servers. But since they are now in the office, they no longer need those entries and can see our servers interal addresses automatically through DNS.

Just curious on why those lmhost entries aren't causing any conflicts with our servers when the clients are in our office since they are different IPs entries listed for our servers.
LVL 27

Accepted Solution

michko earned 2000 total points
ID: 34962206
the dns resolution order should be this:

1. local host name
2. Hosts file
3. DNS server
4. netbios name cache
5. wins server
6. Broadcast
7. LMHosts file

it uses the first valid response.
(from http://www.itnewsgroups.net/servernetworking/t6891-host-name-search-precedence.aspx )

You may want to take a look at this Technet article on integrating DNS with WINS:
(yes, it is a win nt article, but it will apply to xp also).


Featured Post

WEBINAR: GDPR Implemented - Tips & Lessons Learned

Join the WatchGuard team on Thursday, March 29th as we recount some valuable lessons learned in weighing the needs of a business against the new regulatory environment, look ahead at the two months left before implementation, and help you understand the steps you can take today!

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

A quick step-by-step overview of installing and configuring Carbonite Server Backup.
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
How to fix display issue, screen flickering issue when I plug in power cord to the machine. Before I start explaining the solution lets check out once the issue how it looks like after I connect the power cord. most of you also have faced this…
Through the video, you can check the migration process of Outlook PST file to PDF. Kernel for Outlook to PDF tool can convert Outlook emails with all attributes like Subject, To, From, Cc, Bcc and other folders such as Inbox, Outbox, Sent Items, Jun…

607 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