Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Windows Server Networking

host name resolution order

Reply
 
Thread Tools Display Modes
  #1  
Old 11-17-2006, 10:13 AM
Default host name resolution order



Hi,

I've got a Windows 2003 sp1 server and I'm trying to get the host name
resolution order to use the host file first, however this doesn't work.
Windows 2003 is using DNS even if I've added DnsNbtLookupOrder and set it to
1.

According to http://support.microsoft.com/kb/139270
"Note By default, Windows 2000 and Windows Server 2003 try to resolve a name
through DNS before they try to resolve it through the earlier-version
node-type configuration. DNS or NetBIOS lookup order priority can be modified
by applying this registry entry"

AFAIK the NetBios resolution order is:

NetBIOS name cache
WINS server
B-node broadcast
LMHOSTS file
HOSTS file
DNS server

So adding the registry value DnsNbtLookupOrder 1 should solve my issue, but
it doesn't.

Anyone got a clue how to change the host name resolution order so Windows
2003 checks the host file before DNS?

Thanks
Niclas


Niclas
Reply With Quote
  #2  
Old 11-17-2006, 10:37 AM
jwd
Guest
 
Posts: n/a
Default RE: host name resolution order


Hi,

Windows 2003 in effect uses the host file first. When you add an entry to
the hosts file it is automatically written to the DNS cache. The DNS cache
is the first port of call of the resolver so it will effectively pick up the
host file entry before going to a DNS server.

Run ipconfig /displaydns and you will see your host file entries. Also
remember when you are playing around with DNS that negative responses are
also cached, so you ought to run ipconfig /flushdns after any changes.

Hope this helps

Best Regards
Joe Dunn MCSE

"Niclas" wrote:

> Hi,
>
> I've got a Windows 2003 sp1 server and I'm trying to get the host name
> resolution order to use the host file first, however this doesn't work.
> Windows 2003 is using DNS even if I've added DnsNbtLookupOrder and set it to
> 1.
>
> According to http://support.microsoft.com/kb/139270
> "Note By default, Windows 2000 and Windows Server 2003 try to resolve a name
> through DNS before they try to resolve it through the earlier-version
> node-type configuration. DNS or NetBIOS lookup order priority can be modified
> by applying this registry entry"
>
> AFAIK the NetBios resolution order is:
>
> NetBIOS name cache
> WINS server
> B-node broadcast
> LMHOSTS file
> HOSTS file
> DNS server
>
> So adding the registry value DnsNbtLookupOrder 1 should solve my issue, but
> it doesn't.
>
> Anyone got a clue how to change the host name resolution order so Windows
> 2003 checks the host file before DNS?
>
> Thanks
> Niclas

Reply With Quote
Reply

Tags
host, order, resolution

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 10:58 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.