[Cerowrt-devel] dnsmasq setup (was Re: 3.10.15-5 released)

Dave Taht dave.taht at gmail.com
Tue Oct 15 00:50:27 EDT 2013


Well, it looks like the problem lies somewhere in how openwrt
generates dnsmasq's conf file, which has changed since august
somewhere. It's not the new dnsmasq that is at fault.

It incidentally has been YEARS since I looked at how this stuff got
setup, and it can be improved. Notably I was trying to use a web proxy
by default early on and I have no idea if the dhcp method works for
that on anything nowadays. (?)

(Although I supply a wpad address here I do not supply the relevant
wpad proxy data by default. I guess I should get around to documenting
that or removing the functionality)

(does anyone besides me use polipo?)

Anyway, this is what cerowrt 3.7.5 did for /var/etc/dnsmasq.conf
(mildly modified for my internal setup here). I'm about to wipe this
particular router and install 3.10.15-5. (I've also been reviewing the
existing firewall rules in light of some changes since feburary, and
they can be improved also....)

# auto-generated config file from /etc/config/dhcp
conf-file=/etc/dnsmasq.conf
dhcp-authoritative
domain-needed
localise-queries
read-ethers
bogus-priv
expand-hosts
dhcp-script=/etc/dnsmasq_net6.sh
cache-size=5000
port=53
domain=davesyurt.lupinlodge.org
server=/davesyurt.lupinlodge.org/
server=/yurtlab.lupinlodge.org/fd03::1
except-interface=ge00
dhcp-leasefile=/tmp/dhcp.leases
resolv-file=/tmp/resolv.conf.auto
stop-dns-rebind
rebind-localhost-ok


address=/gw.davesyurt.lupinlodge.org/172.21.0.1
ptr-record=1.0.21.172.in-addr.arpa,gw.davesyurt.lupinlodge.org
address=/wpad.davesyurt.lupinlodge.org/172.21.0.1
ptr-record=1.0.21.172.in-addr.arpa,wpad.davesyurt.lupinlodge.org


dhcp-range=se00,172.21.0.5,172.21.0.30,255.255.255.224,24h
dhcp-option=se00,42,0.0.0.0
dhcp-option=se00,44,0.0.0.0
dhcp-option=se00,45,0.0.0.0
dhcp-option=se00,46,8
dhcp-range=sw00,172.21.0.66,172.21.0.91,255.255.255.224,24h
dhcp-option=sw00,42,0.0.0.0
dhcp-option=sw00,44,0.0.0.0
dhcp-option=sw00,45,0.0.0.0
dhcp-option=sw00,46,8
dhcp-range=sw10,172.21.0.98,172.21.0.123,255.255.255.224,24h
dhcp-option=sw10,42,0.0.0.0
dhcp-option=sw10,44,0.0.0.0
dhcp-option=sw10,45,0.0.0.0
dhcp-option=sw10,46,8
dhcp-range=gw00,172.21.0.130,172.21.0.155,255.255.255.224,24h
dhcp-option=gw00,42,0.0.0.0
dhcp-option=gw00,44,0.0.0.0
dhcp-option=gw00,45,0.0.0.0
dhcp-option=gw00,46,8
dhcp-range=gw10,172.21.0.162,172.21.0.187,255.255.255.224,24h
dhcp-option=gw10,42,0.0.0.0
dhcp-option=gw10,44,0.0.0.0
dhcp-option=gw10,45,0.0.0.0
dhcp-option=gw10,46,8
no-dhcp-interface=ge00
no-dhcp-interface=gw01
no-dhcp-interface=gw11



More information about the Cerowrt-devel mailing list