View Single Post
  #1   (View Single Post)  
Old 20th November 2013
Oko's Avatar
Oko Oko is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 1,102
Default unbound reverse lookup private zone

I am using unbound on my local network. Direct lookup works without hitch. Also
when I do something like

Code:
$ dig @localhost -x 127.0.0.1 +short
I get

Code:
localhost.

I am completely confused if it would be possible that I get reverse lookup for machines on my local network by somehow configuring unbound.conf file?
For example

Code:
$ dig @localhost -x 10.0.0.1 +short
fileserver.oko.net.
Reading through documentation I see

Code:
server:
	local-zone: "10.in-addr.arpa." nodefault
stub-zone:
	name: "10.in-addr.arpa."
	stub-addr: ip-of-your-private-dns-server
Which looks like I need to run NSD and replace its address instead of ip-of-your-private-dns-server to get reverse lookup. Is that correct? I am also a bit confused about nsd.db? It looks like this thing is created at least on 3.2.26 by compiling data from zonefile. Are zonefiles identical to BIND zone files?

Last edited by Oko; 20th November 2013 at 06:57 AM.
Reply With Quote