|
||||||||
|
|
#1
|
|
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 |
|
#2
|
|||
|
|||
|
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 |
![]() |
| Tags |
| host, order, resolution |
| Thread Tools | |
| Display Modes | |
|
|