[Windows] [9.16.45] Missing IPv4 DNS prevents tools from working

Mark Andrews marka at isc.org
Mon Jan 22 03:03:11 UTC 2024



> On 22 Jan 2024, at 12:26, Ted Mittelstaedt <tedm at ipinc.net> wrote:
> 
> Yes, this bug can be fixed.
> 
> Just find a software developer and pay him some money.  Or fix it yourself, you have the code.
> 
> I suppose ISC does not want you to buy a paid support subscription to fix this one but maybe they do, you could try contacting them.
> 
> Oh, wait.  You must be wanting this fixed for FREE.   Gotcha!
> 
> Perhaps a review of what the point of Open Source software is might be in order?
> 
> Ted

And it looks like the fix will be to replace the GetNetworkParams call with
GetAdaptersAddresses in lib/irs/win32/resconf.c and go from there to get the
DNS server addresses.  Gentry you may also want to look in
SYSTEM\\CurrentControlSet\\Services\\Tcpip6\\Parameters as well as
SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters for the search list.

https://learn.microsoft.com/en-au/windows/win32/api/iphlpapi/nf-iphlpapi-getadaptersaddresses

Mark

> On 1/8/2024 9:41 AM, Gentry Deng via bind-users wrote:
>> Hello there,
>> 
>> 
>> Due to an accident my local network is missing IPv4 DNS but has IPv6 DNS so it has little impact on accessing the internet.
>> 
>> But I found that neither `dig `nor `nslookup` worked, and reported an error:
>> 
>> 
>> ```
>> 
>> C:\Program Files\ISC BIND 9\bin\dig.exe: parse of C:\Program Files\ISC BIND 9\etc\resolv.conf failed
>> 
>> ```
>> 
>> 
>> There is actually no "resolv.conf" there, they get the DNS from the system and if IPv4 DNS is missing it will throw an error. Creating "resolv.conf" manually also does not prevent the problem.
>> 
>> I noticed that version 9.16 is about to be EOL. I wonder if this BUG can be fixed before EOL? After all, this is the only version of BIND 9 that still supports the Windows platform.
>> 
>> 
>> Best regards,
>> 
>> Gentry
>> 
> -- 
> Visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list
> 
> ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.
> 
> 
> bind-users mailing list
> bind-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/bind-users

-- 
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742              INTERNET: marka at isc.org



More information about the bind-users mailing list