I use standard bind9 to set up a forwarding DNS server. The main difficulties I've had are related to DNSsec. If the DNS at the ISP being forwarded to doesn't support DNSsec it needs to be turned off.For reasons that are well beyond the scope of this posting, I need a DNS server that does the following:
1) Has a (short) list of names it handles itself directly.
2) But if the name isn't in that list, hands it off to a regular DNS server
3) Is quick. I.e., since most of the time, it is going to be in case 2) above, it should not waste time slowing down almost all (regular) DNS searches.
I spent some time testing "busybox dnsd" - busybox being my usual "goto" for things like this. But it failed requirement 3) above. Specifically, I setup a dnsd.conf file with the single line:
myspecialbox 192.168.x.y
and ran it as root as: busybox dnsd -vs -c dnsd.conf
Now, on the target machine, it had in /etc/resolv.conf:
nameserver 8.8.8.8
(And everything works as expected, with just that one single line)
Now, if I add the IP address of the machine running busybox dnsd after the above line, then it never gets called. If I add the IP address before the above line, then it works (and works quickly when I try to ping myspecialbox), but when I try to ping anything else, it hangs for 10 seconds before going ahead.
So, this is not a solution. Can you recommend another easy to setup DNS server that will meet the requirements?
Note: I'm not looking for "Well, lots of people use package ...". I'm looking for a specific answer to a specific question.
There is also the difficulty the clock on the Pi has to be correct for DNS to work. This is compounded by needing to find a nearby NTP server using DNS when there is no RTC.
Statistics: Posted by ejolson — Sun Jun 09, 2024 5:07 am