Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

detect if DNS is static #31

Open
PipeItToDevNull opened this issue Dec 28, 2021 · 2 comments
Open

detect if DNS is static #31

PipeItToDevNull opened this issue Dec 28, 2021 · 2 comments

Comments

@PipeItToDevNull
Copy link
Member

No description provided.

@PipeItToDevNull PipeItToDevNull added the need method We need to find a method to accomplish this label Jun 24, 2022
@PipeItToDevNull PipeItToDevNull added stale and removed need method We need to find a method to accomplish this labels Oct 10, 2022
@gkhull
Copy link

gkhull commented Oct 11, 2022

If you goto
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces
the DWORD EnableDHCP is present with either a value of 0 or 1 which will tell if you if the dns is static.

@PipeItToDevNull
Copy link
Member Author

this is not true in my testing, also there is a key for each adapter which sucks

BUT, Nameserver is only populated if DNS is static in my testing

This cannot integrate with the standard registry checks already present due to the dynamic adapter naming

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants