Networking Forums

Networking Forums > Computer Networking > Windows Networking > host name resolution order

Reply
Thread Tools Display Modes

host name resolution order

 
 
Niclas
Guest
Posts: n/a

 
      11-17-2006, 09:13 AM
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
 
 
 
 
jwd
Guest
Posts: n/a

 
      11-17-2006, 09:37 AM

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

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
network to host order Riccardo Manfrin Linux Networking 5 04-04-2011 02:43 PM
Apache web host name resolution question Ed Marsh Linux Networking 2 07-09-2004 08:00 PM
DNS-NetBios name resolution order Albilol Windows Networking 4 04-23-2004 09:06 PM
DNS-NetBios name resolution order Albilol Windows Networking 4 04-23-2004 07:33 PM
Access to public host from private host through Linux router Santanu Chatterjee Linux Networking 5 11-14-2003 11:57 PM



1 2 3 4 5 6 7 8 9 10 11