Skip to content

Netmask Ordering

February 20, 2013

I’ve been playing with my test environment tonight and came across a feature I didn’t know about and was causing me some issues, so here is what I found.

Netmask ordering if enabled in DNS advanced options, by default returns records that match based on the 3rd octet (eg. 10.10.x.2 x=3rd octet).

So of your doing a query for a list of DCs for instance and there are a number of subjects in your site, the order on which they are returned will be determined by the client machines 3rd octet. For instance if your DCs are, and and your client machine is When the client does a DNS lookup it will be returned with the DC first in the list. If your client IP was then the list order would be returned in round robin order.

If you want to change it to class B, then run the following command:
Dnscmd /Config /LocalNetPriorityNetMask 0x0000FFFF

A useful resource to understand this is:


Leave a Comment

Leave a Reply

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

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

Google photo

You are commenting using your Google 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 )

Connecting to %s

%d bloggers like this: