Prevent additional IP addresses from being registered in DNS

SNAGHTML1aaf7885In Windows 7 and 2008 R2 all IP Addresses are by default registered in DNS.

If you don’t want certain IP addresses to appear in DNS you can alter this behavior with Netsh using the skipassource flag.

Use the following syntax to add an additional IP Address with skipassource flag:

netsh int ipv4 add address "Local Area Connection" address=10.250.1.19 mask=255.255.255.0 skipassource=true

If you want to check if the skipassource flag is set, you can use the following syntax:

netsh int ipv4 show ipaddresses level=verbose

Address 10.250.1.19 Parameters
---------------------------------------------------------
Interface Luid     : Local Area Connection
Scope Id           : 0.0
Valid Lifetime     : infinite
Preferred Lifetime : infinite
DAD State          : Preferred
Address Type       : Manual
Skip as Source     : true

Address 10.250.1.43 Parameters
---------------------------------------------------------
Interface Luid     : Local Area Connection
Scope Id           : 0.0
Valid Lifetime     : infinite
Preferred Lifetime : infinite
DAD State          : Preferred
Address Type       : Manual
Skip as Source     : false

Notes