OpenWrt Forum Archive

Topic: dns server under openwrt

The content of this topic has been archived on 17 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello,

Do you know a good dns server under openwrt?

I saw that there were many bind packages in http://openwrt.alphacore.net/

So I dont know which one I have to take, and if there is something smaller, it would be better lol.

root@OpenWrt:~# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                 1.1M      1.1M         0 100% /rom
/dev/mtdblock/4           6.0M      1.8M      4.2M  31% /
none                     14.9M     28.0k     14.9M   0% /tmp


Thanks :-)

Bye

You can try maradns.

thierry_b wrote:

I saw that there were many bind packages in http://openwrt.alphacore.net/

Use official packages whenever possible. Third party packages are not supported.

If you need something really simple, home network, single domain, only A-Records (IPs), no redundancy (secondaries), go for the buildt-in dnsmasq package and use webif to maintain your /etc/hosts.

Regards, Marcus

No, it's to use to be primary and secondary dns server for several domains.

I see that fetchzone is not included in thz maradns package :-(.

And in the doc, they say that it's used for secondary domains.

There is a way to install it? :-)

Thanks.

Regarding maradns, is there also a "fetchzone" port available?
I just installed maradns and it looks good - but it relies on "fetchzone" for zone-transfers.  Unfortunately my ipkg doesn't know about "fetchzone" and the package tracker seems to be unavailable at the moment...

Or is there another solution to run DNS with multiple domains and primary/secondary support on openwrt? There is no need for fancy stuff like dnssec or dhcp-updates, just redundant multi-domain support?

And this leads to another question: Is there a method of disabling only the dns-component of dnsmasq while still using it as a dhcp server? Or, if I run maradns, what do I use as dhcp-server? ipkg only knows about a forwarder, not a dhcp-server.

Thanks in advance, Marcus

I've looked into the fetchzone issue a bit: It seems that the maradns-port for openwrt is a little bit older, my binary reports version 1.0.26. The version on the maradns homepage is 1.2.03.3. On maradns.org there is talk about a potential security bug in fetchzone version 1.1.37 along with the comment that it's new to version 1.1. BUT there is a "getzone" binary, maybe worth a look...

Regards, Marcus

OK, "getzone" does the zonetransfer, so you can regularily transfer your zones from the primary and write them to a local file. I'm not sure, but I don't think that you'll have the possibility to "notify" your maradns about a change on the primary. So far I have successfully retrieved my zones from my BIND server and configured the mararc to use those zones. I had to add the following lines to the mararc, it won't start as root:
maradns_uid=65534
maradns_gid=65534

Now, maradns starts without errors and listens to UDP port 53, but fails to answer any requests :-( Does anybody have experiences with this?

Thanks, Marcus

The discussion might have continued from here.