How to Set LocalNetPriority using dnscmd

The netmask ordering feature is used to return addresses for type A DNS queries to prioritize local resources to the client.

More info can be found here: http://support.microsoft.com/en-us/kb/842197

For set to Default Windows 2003 mode:

Dnscmd /Config /LocalNetPriorityNetMask 0x000000FF

To use round-robining and netmask ordering based on the client native IP address class (Like Windows 2000):

Dnscmd /Config /LocalNetPriorityNetMask 0xFFFFFFFF

To check the settings:

reg query "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\DNS\Parameters" /v LocalNetPriorityNetMask
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s