Hi !
I use a wndr3700 with Lede 17.01.
I installed bind9 (named) and make it listen on port 54 by adding listen-on port 54 { 127.0.0.1; }; to /etc/bin/named.conf.Then i set dns servers to 127.0.0.1#54 in luci/dns
This allows me to be independent of a commercial DNS provider which might censor/track.
This setup worked fine in openwrt, dnsmasq listened on port 53 and forwarded requests to named on port 54.
However, in lede there seems to be a problem with named, it occupies port 53 in addition to port 54. Then dnsmasq fails to start as port 53 is occupied leading to this:
root@LEDE-KG-Firewall:~# netstat -pntl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 843/uhttpd
tcp 0 0 0.0.0.0:4949 0.0.0.0:* LISTEN 848/xinetd
tcp 0 0 127.0.0.1:54 0.0.0.0:* LISTEN 1429/named
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 824/dropbear
tcp 0 0 :::80 :::* LISTEN 843/uhttpd
tcp 0 0 :::53 :::* LISTEN 1429/named
tcp 0 0 :::22 :::* LISTEN 824/dropbear
as you can see named occupies port 53, dnsmasq is not running.
If i stop named, start dnsmasq and then restart named it works:
root@LEDE-KG-Firewall:/etc/bind# netstat -pntl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 843/uhttpd
tcp 0 0 0.0.0.0:53 0.0.0.0:* LISTEN 2569/dnsmasq
tcp 0 0 0.0.0.0:4949 0.0.0.0:* LISTEN 848/xinetd
tcp 0 0 127.0.0.1:54 0.0.0.0:* LISTEN 2583/named
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 824/dropbear
tcp 0 0 :::80 :::* LISTEN 843/uhttpd
tcp 0 0 :::53 :::* LISTEN 2569/dnsmasq
tcp 0 0 :::22 :::* LISTEN 824/dropbear
What i dont understand is that dnsmasq is started as S19dnsmasq and named as S50named, so dnsmasq should always be first !
Any ideas what could be wrong ? As i said before, this setup worked nicely in OpenWRT.
Thanks,
Karl