Good evening,
Excuse my poor English.
It have been four years without DNS in IPFire . So strange for a router distribution.
After core 141 , DNS didn’t work anymore, no matter how much installations or which core I install. I tried all cores up to 184, today core, and I did dozens of fresh installations.
I work always with Virtualbox, but I am not sure Virtualbox it’s the problem. I have simple installations, with a RED network card connected to NAT in VirtualBox and receiving DHCP, and a GREEN network card connected to Virtualbox internal network with IP 192.168.100.1.
I have read some IPFire user messages telling DNS don’t work for years. There are simple workarounds:
-
For the clients receiving DHCP from IPFire, just configure in the DHCP that the DNS server it’s something different that IPFire: 1.1.1.1 , 4.4.4.4 , or 8.8.8.8 should save the day.
-
For the IPFire machine, if we need internet for updating (
packfire update
andpackfire upgrade
) we just can rewrite /etc/resolv.conf and change the DNS to 1.1.1.1 and that saves the day.
I don’t know IPFire internals, but problem should be “Unbound” service. Also in every boot the file /var/messages/log
it’s just full of “unbound” error messages.
So I just stop unbound with:
# /etc/init.d/unbound stop
and start it again with:
# unbound -vvvvv
but there are just so much messages I don’t understand:
# cat /var/log/messages | grep unbound | less
But … does it seems like the problem comes from unbound DNSSec? Yes!
# /etc/init.d/unbound stop
# nano /etc/unbound/unbound.conf
If in this unbound configuration file I comment (#) this line of DNSSEC: auto-trust-anchor-file
, and then I start unbound again, finally I can ping www.google.es . DNS is finally working
Well , so now I know that problem is with Unbound DNSSec. But can somebody help me to fix it without stopping DNSsec in Unbound? Maybe the explanation is in here:
From this document I understand that /var/lib/unbound/root.key
should be world readable and unbound writable , but the owner is user nobody and the permissions are rw-r--r--
. Anyway if unbound runs as user nobody, this is fine.
Thanks in advance