[Dnsmasq-discuss] Problem Reading from /etc/dnsmasq.conf on OSX 10.8

Simon Kelley simon at thekelleys.org.uk
Fri Sep 13 16:33:16 BST 2013


The default loaction of the configuration file may be somewhere other
than /etc/dnsmasq.conf on non-Linux platforms.


dnsmasq -w will tell you where it's expected.

Usage: dnsmasq [options]

Valid options are:
.
.
.
-C, --conf-file=<path>                  Specify configuration file
(defaults to /etc/dnsmasq.conf).



Cheers,

SImon.

On 13/09/13 15:13, Chris Fortier wrote:
> 
> Hello,
> 
> I have dnsmasq installed on Mac OSX 10.8 however it does not appear to be reading the /etc/dnsmasq.conf file.
> 
> Setup:
> 
> OSX 10.8
> Dnsmasq installed by homebrew
> VirtualBox machine running on 192.168.56.101
> 
> /etc/dnsmasq.conf:
> ○ → cat /etc/dnsmasq.conf | grep -v \# | grep -v \^\$
> address=/dev16.be.lan/192.168.56.101
> 
> /etc/resolver:
> ○ → cat /etc/resolver/dev16.be.lan
> nameserver 127.0.0.1
> 
> Running dnsmasq manually, I get:
> sudo ./dnsmasq -d
> dnsmasq: started, version 2.66 cachesize 150
> dnsmasq: compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP DHCPv6 no-Lua         TFTP no-conntrack no-ipset auth
> dnsmasq: setting --bind-interfaces option because of OS limitations
> dnsmasq: reading /etc/resolv.conf
> dnsmasq: using nameserver 10.0.1.1#53
> dnsmasq: read /etc/hosts - 13 addresses
> 
> And it won't resolve dev16.be.lan
> 
> 
> However, if I run it with the address argument, this works:
> ○ → ps -ef | grep dnsmasq
>     -2   149     1   0 10:00AM ??         0:00.01 /usr/local/opt/dnsmasq/sbin/dnsmasq --keep-in-foreground --address=/dev16.be.lan/192.168.56.101
> 
> 
> 
> Any ideas?
> 
> Thanks!
> 
> Chris
> 
> 
> -----------------------------------------------------------------------------
> signature = {
>          'Name': 'Chris Fortier',
>          'Role': 'Quality Engineering',
>          'Team': 'Behance',
>          'Site': 'www.behance.com<http://www.behance.com/>',
>          'Company': 'Adobe',
>          'Address': {
>                  'Street': '532 Broadway Fl 7',
>                  'City': 'New York',
>                  'State': 'NY',
>                  'Zip': '10012'
>          },
>          'Phone_Numbers': {
>                  'Office': '917-934-0243',
>                  'Cell': '321-231-3644',
>                  'Internal': '30643'
>          }
> }
> 
> 
> 
> 
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss




More information about the Dnsmasq-discuss mailing list