On 2014-09-19, Krzysztof Strzeszewski <[email protected]> wrote: > Hi, > > I want add my global domain in my serwer dns unbound... How to do? I > don't add local domain: > > local-data: "example.com 10800 IN A local_IP" > > but I want add mu global domain end record A for public_IP in global > network. > > I konw how add my domain in named(bind): > > zone "example.com" { > type master; > file "example.com.hosts"; > allow-update { none; }; > allow-transfer { 111.111.111.111; }; > notify yes; > }; > > end add record A in example.com.hosts. > > > > but I don't konw add in unbount > > > > I greet > Krzych > >
Unbound is a recursive-only server. You can add a domain with local-data (whether it's a local or remote IP) but this is just for queries from local DNS clients, not from other nameservers. If you want to serve these records to other nameservers, that needs to be done with a different program (for example NSD). There are a couple of ways to run the two programs on the same machine, easiest is usually to run unbound on an internal IP address and nsd on an external address, though there are some other options. BIND has a not-recommended config mode where you can serve both clients and other nameservers on the same IP address. You can't do this with most modern DNS servers including Unbound.

