DaemonForums  

Go Back   DaemonForums > Miscellaneous > General software and network

General software and network General OS-independent software and network questions, X11, MTA, routing, etc.

Reply
 
Thread Tools Display Modes
  #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
  #2   (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

I am going to answer my own question . No NSD is not necessary. To have a reverse lookup enabled on the local network one can hardcode ptr data for local machines as

Code:
 local-data-ptr: "10.0.0.1 fileserver.oko.net"
Enjoy!
Reply With Quote
  #3   (View Single Post)  
Old 20th November 2013
rocket357's Avatar
rocket357 rocket357 is offline
Real Name: Jonathon
Wannabe OpenBSD porter
 
Join Date: Jun 2010
Location: 127.0.0.1
Posts: 429
Default

Yeah unbound isn't a very powerful authoritative DNS server (it wasn't intended to be, afterall), but it does have some "hardcoding" capabilities that make it functional for small installations to not need something like BIND or NSD. I love the stub-addr capabilities, though =)
__________________
Linux/Network-Security Engineer by Profession. OpenBSD user by choice.
Reply With Quote
Reply

Tags
dns


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set reverse DNS to my domain? guitarscn General software and network 1 12th September 2010 04:58 PM
DDNS problem (unable to add forward / reverse map) riotnrrd FreeBSD General 12 28th February 2010 03:13 PM
HostV's virtual private servers go very private J65nko News 0 10th February 2010 05:17 AM
sendmail host name lookup failure ducu_00 General software and network 9 21st January 2009 02:42 AM
Sendmail 8.14.2 undisclosed DNSBL lookup failure and NOQUEUE errors (FreeBSD 7.0) NathanPardoe FreeBSD General 9 21st May 2008 12:00 AM


All times are GMT. The time now is 10:46 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick