ipconfig
The ipconfig utility is most commonly used for releasing and renewing DHCP addresses, but it is also a handy client-side DNS tool. The DNS-related ipconfig options include the following:
- /displaydns
This option displays the contents of the client resolver cache. For each cached resource record, it displays the Record Name, Record Type, Time To Live (TTL), Data Length, Section, and RR data. If a record resides in the cache and another query is made for the record, the client uses that record (until the TTL expires) instead of querying a name server again.
- /flushdns
This option erases the contents of the resolver cache. Subsequent lookups are sent to a name server and cached again by the client after receiving a response.
- /registerdns
This option causes the client to refresh its DHCP lease and its network registration (A and PTR records).
The ipconfig utility is installed by default on Windows 2000, Windows XP, and Windows Server 2003.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access