Default Reverse Lookup name for unused IP in unbound

Joe Abley jabley at hopcount.ca
Fri Sep 23 12:27:08 UTC 2022


On Sep 23, 2022, at 14:03, JAHANZAIB SYED via Unbound-users <unbound-users at lists.nlnetlabs.nl> wrote:

> Ok with wildcard tip, I proceed little further.
> I added following record in reverse zone
> 
> *       IN    PTR   example.com.
> 
> Now If I do nslookup for any LAN IP (pool 192.168.1.x/24) who doesn't have any PTR record, it resolves to
> 
> > 192.168.1.200
> Name:    example.com
> Address:  192.168.1.200
> 
> How can I turn this example.com to default as IP.example.com (e.g: 192-168-1-200.example.com)

You can either replace the wildcard record in the 1.168.192.in-addr.arpa zone with lots of individual PTR records (this is more practical with IPv4 than IPv6) or you can...

> From: Måns Nilsson
> Sent: Friday, September 23, 2022 4:05 PM
> To: JAHANZAIB SYED
> Cc: unbound-users at lists.nlnetlabs.nl
> Subject: Re: Default Reverse Lookup name for unused IP in unbound
> 
> If you want to have a more special RDATA section in the reply, an
> active authoritative server is required, where ansvers are synthesized
> on-the-fly.

... do something like that.


Joe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nlnetlabs.nl/pipermail/unbound-users/attachments/20220923/892668de/attachment.htm>


More information about the Unbound-users mailing list