I just received my shiny new Turris MOX on Friday and was really looking forward to finally replace my old WiFi router with something awesome, but then I already spent almost a day by debugging why basic things doesn’t work:-(
I just wanted my DHCP clients to be able to connect to the internet and resolve local hostnames.
I finally found a way how to convince MOX to send DNS server to my clients (DHCP-Options
burried in advanced LAN settings), but I still struggle with the hostname resolution.
I managed to make it partly working by specifying search/domain in resolv.conf on the clients, but there are still clients that doesn’t work with this, namely my docker nodes running on raspbian.
On my previous router running tomato-usb firmware with dnsmasq, I was able to resolve local hostnames with or without specifying the domain, but MOX can only resolve them with the domain specified.
Is that some kind of limitations of kresd/unbound or whatever DNS server is used in place of dnsmasq, or is this just a bug in this alpha MOX firmware?
My system log contains lot of occurrences of the following error:
Feb 24 15:09:57 turris dnsmasq-dhcp[20356]: read /etc/ethers - 0 addresses
Feb 24 15:09:57 turris dnsmasq-script[20356]: /usr/lib/dnsmasq/dhcp-script.sh: /etc/resolver/dhcp_host_domain_ng.py: line 3: import: not found
Feb 24 15:09:57 turris dnsmasq-script[20356]: /usr/lib/dnsmasq/dhcp-script.sh: /etc/resolver/dhcp_host_domain_ng.py: line 4: import: not found
Feb 24 15:09:57 turris dnsmasq-script[20356]: /usr/lib/dnsmasq/dhcp-script.sh: /etc/resolver/dhcp_host_domain_ng.py: line 5: import: not found
Feb 24 15:09:57 turris dnsmasq-script[20356]: /usr/lib/dnsmasq/dhcp-script.sh: /etc/resolver/dhcp_host_domain_ng.py: line 6: from: not found
Feb 24 15:09:57 turris dnsmasq-script[20356]: /usr/lib/dnsmasq/dhcp-script.sh: /etc/resolver/dhcp_host_domain_ng.py: line 7: import: not found
Feb 24 15:09:57 turris dnsmasq-script[20356]: /usr/lib/dnsmasq/dhcp-script.sh: /etc/resolver/dhcp_host_domain_ng.py: line 8: import: not found
Feb 24 15:09:57 turris dnsmasq-script[20356]: /usr/lib/dnsmasq/dhcp-script.sh: /etc/resolver/dhcp_host_domain_ng.py: line 9: import: not found
Feb 24 15:09:57 turris dnsmasq-script[20356]: /usr/lib/dnsmasq/dhcp-script.sh: /etc/resolver/dhcp_host_domain_ng.py: line 10: from: not found
Feb 24 15:09:57 turris dnsmasq-script[20356]: /usr/lib/dnsmasq/dhcp-script.sh: /etc/resolver/dhcp_host_domain_ng.py: line 13: syntax error: unexpected “(”
Feb 24 15:09:57 turris dnsmasq[20356]: script process exited with status 2
Could this be related?