bind 9.3.2 dig win32 broken?

Danny Mayer mayer at gis.net
Thu Feb 16 16:15:43 UTC 2006


james.owen at bell.ca wrote:
> Hi,
> 
> Thanks for your help.  
> 
> Turns out if you just create a empty file called resolv.conf in %windir%\system32\drivers\etc it works as well.
> 
> So it looks like it is not really a bug but an under documented 'feature'. :-)
> 

No, it's a bug. resolv.conf is strictly speaking unncessary on Windows
and an empty resolv.conf should be the same as having no nameservers listed.

Danny

> James Owen
>  
> -----Original Message-----
> From: Danny Mayer [mailto:mayer at gis.net] 
> Sent: Thursday, February 16, 2006 8:56 AM
> To: Owen, James (P018530)
> Cc: bind-users at isc.org
> Subject: Re: bind 9.3.2 dig win32 broken?
> 
> james.owen at bell.ca wrote:
>> Hi,
>>
>> Looks like it is finding 'localhost' and nothing else.
>> Which reg entry is it seeking?
>>
>> from 'broken' version
>>
> 
> It turns out that the problem is due to this code change in dighost.c Line 948:
> 
> 	if (isc_file_exists(RESOLV_CONF))
> 		lwresult = lwres_conf_parse(lwctx, RESOLV_CONF);
> 
> In this case since the resolv.conf file does not exist it does not call lwres_conf_parse(). However in the Win32 case it needs to since that's the code that reads the registry entries. Win32 has its own version of this function.
> 
> For you, since you have the compiler and source code, you can comment out the if statement and things will work again. The challenge is how to fix the code properly so that it will work correctly.
> 
> Danny
> 
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.375 / Virus Database: 267.15.7/259 - Release Date: 2/13/2006
>  
> 



More information about the bind-users mailing list