[Dnsmasq-discuss] resolv-file directive in dnsmasq.conf no longer working

Simon Kelley simon at thekelleys.org.uk
Mon Dec 3 09:43:44 GMT 2012


On 03/12/12 04:52, Mark S Jones wrote:
> On 2 December 2012 19:59, Simon Kelley <simon at thekelleys.org.uk
> <mailto:simon at thekelleys.org.uk>> wrote:
> 
>     On 02/12/12 00:52, Mark S Jones wrote:
> 
>         Hi,
> 
>         I noticed that the resolv-file directive in the dnsmasq
>         configuration file
>         stopped working around version 2.60 (I know it used to work in
>         2.59).
> 
>         Fortunately, the command line option --resolv-file=<file>  still
>         works.
> 
>         Am assuming this is a bug?
> 
> 
>     I just did a trivial test, and it seems to be working for me.
> 
>     Note tha if the specified resolv-file doesn't exist, dnsmasq will
>     just log a warning and keep waiting for it to appear. This is
>     normally useful behaviour, but not if (for instance) you'd typoed
>     the filename in the configuration file :-)
> 
> 
> Strange.
> 
> I'm using the same dnsmasq.conf file with 2.63 as I did with 2.59 and
> seeing 2.63 choose to ignore this directive from the file.
> 
> Here's a couple of tests using 2.63 - first with the config file
> directive, then with the explicit command line switch - in both cases,
> pointing to the same resolv-file:
> 
> Marks-MacBook-Pro-2:~ root# which dnsmasq
> /usr/local/sbin/dnsmasq
> Marks-MacBook-Pro-2:~ root# grep ^resolv.file /usr/local/etc/dnsmasq.conf
> resolv-file=/usr/local/etc/dnsmasq-resolv.conf
> 
> Marks-MacBook-Pro-2:~ root# ls -l /usr/local/etc/dnsmasq-resolv.conf
> -rw-r--r--  1 root  wheel  73 Dec  3 12:40
> /usr/local/etc/dnsmasq-resolv.conf
> Marks-MacBook-Pro-2:~ root# dnsmasq -d
> dnsmasq: started, version 2.63rc6 cachesize 150
> dnsmasq: compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN
> DHCP DHCPv6 no-Lua TFTP no-conntrack
> dnsmasq: setting --bind-interfaces option because of OS limitations
> dnsmasq: reading /etc/resolv.conf
> dnsmasq: using nameserver 192.168.0.254#53
> dnsmasq: using nameserver 192.168.0.254#53
> dnsmasq: read /etc/hosts - 25 addresses
> ^C
> 
> Marks-MacBook-Pro-2:~ root# dnsmasq -d
> --resolv-file=/usr/local/etc/dnsmasq-resolv.conf
> dnsmasq: started, version 2.63rc6 cachesize 150
> dnsmasq: compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN
> DHCP DHCPv6 no-Lua TFTP no-conntrack
> dnsmasq: setting --bind-interfaces option because of OS limitations
> dnsmasq: reading /usr/local/etc/dnsmasq-resolv.conf
> dnsmasq: using nameserver 192.168.0.254#53
> dnsmasq: using nameserver 192.168.1.1#53
> dnsmasq: using nameserver 192.168.1.254#53
> dnsmasq: read /etc/hosts - 25 addresses
> ^C
> 
>  
> Starting to wonder if it's a build issue? I compiled using Xcode's gcc
> 4.2.1 on OS X 10.8.2.
> 

Could be. Please could you send me a copy of the dnsmasq.conf you're
using, off-list? Let's try and control the variables in our experiments.


Cheers,

Simon.





More information about the Dnsmasq-discuss mailing list