My network has both ipv4 and ipv6, I use radvd to offer RA, and dnsmasq
for ipv4 dhcp. My openwrt version is r37806.
I want to use bind instead of dnsmasq, so I add port=0 /etc/dnsmasq.conf.

Here is the contain of /var/etc/dnsmasq.conf
# 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
domain=sumomo.pri
server=/sumomo.pri/
dhcp-leasefile=/tmp/dhcp.leases
resolv-file=/etc/resolv.conf
addn-hosts=/tmp/hosts
stop-dns-rebind
rebind-localhost-ok

dhcp-range=lan,192.168.0.100,192.168.0.249,255.255.255.0,12h
no-dhcp-interface=pppoe-wan


address=/home-r0.sumomo.pri/192.168.0.1
ptr-record=1.0.168.192.in-addr.arpa,home-r0.sumomo.pri
===============================================================
the netstat -plaunt

tcp 0 0 0.0.0.0:53 0.0.0.0:* LISTEN 3910/dnsmasq
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1596/dropbear
tcp 0 0 192.168.0.1:22 192.168.0.3:49814 ESTABLISHED 1598/dropbear
tcp 0 0 :::5000 :::* LISTEN 2073/miniupnpd
tcp 0 0 :::53 :::* LISTEN 3910/dnsmasq
tcp 0 0 :::22 :::* LISTEN 1596/dropbear
udp 0 0 192.168.0.1:58670 0.0.0.0:* 2073/miniupnpd
udp 0 0 0.0.0.0:53 0.0.0.0:* 3910/dnsmasq
udp 0 0 0.0.0.0:67 0.0.0.0:* 3910/dnsmasq
udp 0 0 0.0.0.0:1900 0.0.0.0:* 2073/miniupnpd
udp 0 0 0.0.0.0:1194 0.0.0.0:* 1805/openvpn
udp 0 0 192.168.0.1:5351 0.0.0.0:* 2073/miniupnpd
udp 0 0 :::53 :::* 3910/dnsmasq
udp 0 0 :::1900 :::* 2073/miniupnpd
udp 0 0 :::45013 :::* 2073/miniupnpd

Then I use dhclient eth0 in computer, then my resolv.conf became below
==============================
domain sumomo.pri
search sumomo.pri
====================================
It doesn't tell me where is the nameserver auto.
If I start named then restart dnsmasq, the resullt is the same.

I have to start dnsmasq with dns function then start bind9 to make both
dhcp of dnsmasq and bind9 works(bind9 won't listen on 0.0.0.0:53 as
dnsmasq).

The result is the same in both dnsmasq and dnsmasq-dhcpv6
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to