After the recent updates to my Turris Omnia, I’m having problems with DNS lookups for local computers. At first looking up hostnames for non-static DHCP leases did not work, and I was getting errors saying:
Oct 22 10:21:26 damma dnsmasq-script[8079]: /usr/lib/dnsmasq/dhcp-script.sh: /etc/resolver/dhcp_host_domain_ng.py: line 3: import: not found
Oct 22 10:21:26 damma dnsmasq-script[8079]: /usr/lib/dnsmasq/dhcp-script.sh: /etc/resolver/dhcp_host_domain_ng.py: line 4: import: not found
Oct 22 10:21:26 damma dnsmasq-script[8079]: /usr/lib/dnsmasq/dhcp-script.sh: /etc/resolver/dhcp_host_domain_ng.py: line 5: import: not found
Oct 22 10:21:26 damma dnsmasq-script[8079]: /usr/lib/dnsmasq/dhcp-script.sh: /etc/resolver/dhcp_host_domain_ng.py: line 6: from: not found
Oct 22 10:21:26 damma dnsmasq-script[8079]: /usr/lib/dnsmasq/dhcp-script.sh: /etc/resolver/dhcp_host_domain_ng.py: line 7: import: not found
Oct 22 10:21:26 damma dnsmasq-script[8079]: /usr/lib/dnsmasq/dhcp-script.sh: /etc/resolver/dhcp_host_domain_ng.py: line 8: import: not found
Oct 22 10:21:26 damma dnsmasq-script[8079]: /usr/lib/dnsmasq/dhcp-script.sh: /etc/resolver/dhcp_host_domain_ng.py: line 9: import: not found
Oct 22 10:21:26 damma dnsmasq-script[8079]: /usr/lib/dnsmasq/dhcp-script.sh: /etc/resolver/dhcp_host_domain_ng.py: line 10: from: not found
Oct 22 10:21:26 damma dnsmasq-script[8079]: /usr/lib/dnsmasq/dhcp-script.sh: /etc/resolver/dhcp_host_domain_ng.py: line 13: syntax error: unexpected "("
Oct 22 10:21:26 damma dnsmasq[8079]: script process exited with status 2
That seems to have been resolved by disabling and reenabling “Enable DHCP clients in DNS” in reForis. After that, lookups for for local computers work, but only for lookups in the format <hostname>.<networkname>
, not lookups for just <hostname>
(although just <hostname>
does work for infinite-duration static leases).
Also, lookups for the router’s own hostname, as <hostname>.<networkname>
, is broken, instead returning an IP address for a DHCP lease with an empty hostname (which particular one it returns seems to change occasionally).