[Dnsmasq-discuss] dnsmasq / dns server / iptables config glitch?

Brad Morgan b-morgan at concentric.net
Mon Nov 23 21:24:44 GMT 2009


> My dnsmasq config file, based on the example config but with comments
removed, is:
> 
> domain-needed
> bogus-priv
> filterwin2k
> local=/localdomain/
> domain=localdomain
> dhcp-range=192.168.0.3,192.168.0.254
> dhcp-option=option:router,192.168.0.2
> dhcp-option=option:mtu,1500
> 
> and my resolv.conf file is:
> 
> nameserver 194.74.65.68

I have a very similar configuration. I think you are close but you may need
to tweak your DHCP client. I also have a couple additional lines in my
dnsmasq.conf.

My /etc/dnsmasq.conf:

domain-needed
bogus-priv
server=/morgan.local/127.0.0.1
local=/morgan.local/
expand-hosts
domain=morgan.local
dhcp-range=192.168.0.100,192.168.0.199,4h
dhcp-option=3,192.168.0.1
dhcp-option=6,192.168.0.1
bogus-nxdomain=208.67.217.130 #OpenDNS
bogus-nxdomain=208.69.32.132 #OpenDNS
log-facility=/var/log/dnsmasq

Take a look at man dhclient.conf to see what might make sense for your
configuration. I think "prepend domain-name-servers 127.0.0.1" may be all
you need. 

My /etc/dhclient-eth0.conf:

supersede domain-name "morgan.local"; 
supersede domain-name-servers 127.0.0.1,208.67.222.222,208.67.220.220;
#OpenDNS
send host-name "bricknix";  # temporary RHL ifup addition

Regards,

Brad






More information about the Dnsmasq-discuss mailing list