amphp / dns

Async DNS resolution for PHP based on Amp.

Home Page:https://amphp.org/dns

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for Windows System DNS

kelunik opened this issue · comments

We currently use 8.8.8.8 by default on Windows.

We can find the nameservers Windows uses in HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Tcpip/Parameters/Nameserver or HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Tcpip/Parameters/DhcpNameServer.

See also https://technet.microsoft.com/en-us/library/cc962470.aspx

How can we access these? Only via COM class (not an always available extension) - or are there other means too?