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@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!!

Attachment: signature.asc
Description: PGP signature

Reply via email to