Change Domain Name Resolution Order

G

Guest

Hi,

I am trying to change the order of Domain Name Resolution on a Windows XP
SP2 computer. The default order for Domain Name Resolution within XP is:

1.Hosts File
2.Domain Name System
3.Netbios

However I would like to change the order to:

1.Domain Name System
2.Hosts File
3.Netbios

How can I change this order?

I have already tried changing this order by editing some registry keys,
however this did not work. This is what I tried to do:

I changed the values of these registry keys:

DnsPriority = 30
HostsPriority = 75
NetbtPriority = 100
LocalPriority = 200

These subkeys can be found under this registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\ServiceProvider to.

Thanks.
 
L

Lanwench [MVP - Exchange]

tjb said:
Hi,

I am trying to change the order of Domain Name Resolution on a
Windows XP
SP2 computer. The default order for Domain Name Resolution within XP
is:

1.Hosts File
2.Domain Name System
3.Netbios

However I would like to change the order to:

1.Domain Name System
2.Hosts File
3.Netbios

How can I change this order?

I have already tried changing this order by editing some registry
keys, however this did not work. This is what I tried to do:

I changed the values of these registry keys:

DnsPriority = 30
HostsPriority = 75
NetbtPriority = 100
LocalPriority = 200

These subkeys can be found under this registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\ServiceProvider
to.

Thanks.

I'm not sure; I've never tried to muck with this (and wouldn't). What is
your goal, just out of curiosity? What problems are you having that lead you
to attempt this? There may be a better way.....
 
G

Guest

I want to add an entry into the hosts file, so that when there is no DNS
server the computer will resolve the IP address from the hosts file.

However with the default resolution order, the computer is looking at the
hosts file before the DNS server and I dont want this to happend, when there
is a DNS server avaliable.

Any suggestions would be greatly appreciated?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top