Maintained by: NLnet Labs

[Unbound-users] Have static records in forwarded zone

Alexander Chekalin
Fri Jul 10 12:08:13 CEST 2015


I try to create a bit strange setup. I use unbound as a caching server 
and it works fine. Then, I need it to resolve only limited set of 
domains, so I add something like:


	name: ""

	name: "."

to the config and all that unbound can resolve is domain.

Now it the tricky part. In our company we have a domain that is on 
external DNSes and it warks fine but I need to have several records 
modified. Say, if you query for from outside it answer 
you with IP of our office but if you query the same name from inside the 
LAN it should answer you with LAN address of mail server.

So what I'd like to do is to have something like that:

local-zone: "" typetransparent
local-data: " A"

but this won't work.

How can I create the setup I need? I understand this is the case where 
split zone fits nicely but then I'll need to maintain the whole zone 
both remotely and locally, and I'd like to forward it to zone's DNSes 
for all records but for these that I have locally.

Thank you in advance,