Default Reverse Lookup name for unused IP in unbound

JAHANZAIB SYED aacable at hotmail.com
Tue Sep 27 10:11:30 UTC 2022


I forgot to update the thread. I managed to sort this by using  BIND & following statement in Reverse Zone File & getting desired results.

$GENERATE 1-255 $ IN PTR 10-11-11-$.example.com.

Thank you

Regards,
SJZ

________________________________
From: Måns Nilsson
Sent: Friday, September 23, 2022 5:30 PM
To: JAHANZAIB SYED
Cc: JAHANZAIB SYED via Unbound-users
Subject: Re: Default Reverse Lookup name for unused IP in unbound

Subject: Re: Default Reverse Lookup name for unused IP in unbound Date: Fri, Sep 23, 2022 at 12:03:27PM +0000 Quoting JAHANZAIB SYED via Unbound-users (unbound-users at lists.nlnetlabs.nl):
> 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)

As I wrote a bit further down in my previous reply:

>> 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.

I'm afraid this is a bit off-topic here, as it deals with serving data
and not with looking it up, and unbound is definitely aimed at looking
up.

Several database- or script-driven backends have been developed for
various authoritative name servers, and while I've never tried myself,
I'm certain you'll find one that does what you want.

--
Måns Nilsson     primary/secondary/besserwisser/machina
MN-1334-RIPE           SA0XLR            +46 705 989668
I just had a NOSE JOB!!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nlnetlabs.nl/pipermail/unbound-users/attachments/20220927/cd9242c1/attachment.htm>


More information about the Unbound-users mailing list