Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4495

Raspberry Pi 400 • Looking for a specific kind of DNS server

$
0
0
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.

Statistics: Posted by BigRedMailbox — Sat Jun 08, 2024 8:22 pm — Replies 2 — Views 31



Viewing all articles
Browse latest Browse all 4495

Trending Articles