Unbound How to add local DNS entries when using unbound-manager

  • ATTENTION! You'll notice a Prefix dropdown when you create a thread. If your post applies to one of the topics listed, please use that Prefix for your post. When browsing the thread list you can use the Prefix to filter the view.
  • ATTENTION! As of November 1, 2020, you are not able to reply to threads 6 months after the thread is opened if there are more than 500 posts in the thread.
    Threads will not be locked, so posts may still be edited by their authors.
    Just start a new thread on the topic to post if you get an error message when trying to reply to a thread.


Occasional Visitor
I need to be able to add some local DNS entries. Purpose is so I can resolve some local addresses when local, vs public IP when remote. So, normally, I would put these into a dnsmasq addn host file. But it seems that ping or dig to any address in those (including the ASUS hosts.dnsmasq file) fail. How can I get local IP addresses resolve by unbound?


Senior Member
Add lines to your /opt/share/unbound/configs/unbound.conf.add

local-zone: "site.domain.com." static
local-data: "site.domain.com. IN A"


Occasional Visitor
That works, however, you cannot add more than one local-data line as otherwise it says duplicates exist in unbound-manager. I think there is a bug there. Works fine outside of unbound-manager. A trick seems to be put all those local statements in a second conf file and only add an include for the file to unbound.conf file.

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!