I recently built OpenWRT for raspberry pi zero, it has some glitches but probably because I built it from the trunk.
The bigger issue is that if resolv.conf points to 127.0.0.1, the local dns resolver doesn't work at all.
Googling around I found https://dev.openwrt.org/ticket/11495 but my issue seems a bit different
root@gateway:/tmp# cat /etc/resolv.conf
search home
nameserver 127.0.0.1
root@gateway:/tmp# nslookup www.google.it
nslookup: can't resolve '(null)': Name does not resolve
nslookup: can't resolve 'www.google.it': Try again
root@gateway:/tmp# nslookup www.google.it 127.0.0.1
Server: 127.0.0.1
Address 1: 127.0.0.1 localhost
nslookup: can't resolve 'www.google.it': Try again
root@gateway:/tmp# nslookup www.google.it localhost
Server: 127.0.0.1
Address 1: 127.0.0.1 localhost
nslookup: can't resolve 'www.google.it': Try again
If I switch to use the router dns service it works correctly
root@gateway:/tmp# cat /etc/resolv.conf
search home
nameserver 192.168.1.1
root@gateway:/tmp# nslookup www.google.it
nslookup: can't resolve '(null)': Name does not resolve
Name: www.google.it
Address 1: 172.217.16.35 muc03s08-in-f3.1e100.net
Address 2: 2a00:1450:4016:803::2003 muc03s08-in-x03.1e100.net
root@gateway:/tmp# nslookup www.google.it 127.0.0.1
Server: 127.0.0.1
Address 1: 127.0.0.1 localhost
Name: www.google.it
Address 1: 172.217.16.35 muc03s08-in-f35.1e100.net
Address 2: 2a00:1450:4016:803::2003 muc03s08-in-x03.1e100.net
root@gateway:/tmp# nslookup www.google.it localhost
Server: 127.0.0.1
Address 1: 127.0.0.1 localhost
Name: www.google.it
Address 1: 172.217.16.35 muc03s08-in-f3.1e100.net
Address 2: 2a00:1450:4016:803::2003 muc03s08-in-x03.1e100.net
May be there is a sort of recursion between the local dns server and dnsmasq.
root@gateway:/tmp# cat /etc/config/dhcp
config dnsmasq
option boguspriv '1'
option localise_queries '1'
option expandhosts '1'
option authoritative '1'
option readethers '1'
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.auto'
option local '/home/'
option domain 'home'
option nonwildcard '0'
option rebind_protection '1'
option rebind_localhost '1'
option localservice '1'
config dhcp 'lan'
option interface 'lan'
option dhcpv6 'server'
option ra 'server'
option ra_management '1'
option start '100'
option limit '150'
option leasetime '12h'
config dhcp 'wan'
option interface 'wan'
option ignore '1'
config odhcpd 'odhcpd'
option maindhcp '0'
option leasefile '/tmp/hosts/odhcpd'
option leasetrigger '/usr/sbin/odhcpd-update'
I tried with localservice = 0
root@gateway:/tmp# cat /etc/config/network
config interface 'wan'
option proto 'dhcp'
option ifname 'eth0'
option peerdns '0'
option dns '8.8.8.8 8.8.4.4'
config interface 'lan'
option proto 'static'
option ifname 'eth1'
option netmask '255.255.255.0'
option ipaddr '10.255.255.254'
I already tried without the dns and peerdns options
Someone has any hint?
Beside this, both https and firewall rules management are unusable.
I would like to avoid to rebuild everything using eglibc (or glibc).
Thank you!
(Last edited by d.albano on 16 Aug 2016, 15:38)