TechnitiumSoftware / DnsServer

Technitium DNS Server
https://technitium.com/dns/
GNU General Public License v3.0
4.47k stars 431 forks source link

Auto PTR Features #548

Closed rapdodge closed 1 year ago

rapdodge commented 1 year ago

Example You have 2001:db8:b00b::/48 which is the ip6.arpa is b.0.0.b.8.b.d.0.1.0.0.2.ip6.arpa

Requested feature is auto PTR records.

2001:db8:b00b:b00b:ec5b:ca1e:6969:ec0e will have answer 2001db8b00bb00bec5bca1e6969ec0e.domain.here

Example project about auto PTR https://github.com/vlcty/coredns-auto-ipv6-ptr

I'm really hoping that Technitium DNS can implemented auto PTR feature :)

Best regards,

ShreyasZare commented 1 year ago

Thanks for the feature request. Will get it added.

echodreamz commented 1 year ago

+1 for this. The ability to also auto PTR for PTR requests that do not exist (are not defined in a zone) would be awesome.

https://simpledns.plus/kb/187/smart-reverse-dns-plug-in

SimpleDNS had a great plugin for this

drksbr commented 1 year ago
ShreyasZare commented 1 year ago

Technitium v11.2 is released with new Auto PTR app. Do check and let me know your feedback.

rapdodge commented 1 year ago

Technitium v11.2 is released with new Auto PTR app. Do check and let me know your feedback.

Got it, will check it out

rapdodge commented 1 year ago

It's works perfect!

image image

ShreyasZare commented 1 year ago

Thanks for the feedback!

drksbr commented 6 months ago

I don't know how to use the auto-ptr app. Can anyone tell me how to configure it?

ShreyasZare commented 6 months ago

I don't know how to use the auto-ptr app. Can anyone tell me how to configure it?

@drksbr Thanks for asking. First, you need to create a reverse zone for which you need to generate PTR records automatically. Once you have your reverse zone, add an APP record in the zone and select the Auto PTR app with AutoPtr.App class path. You will need to edit the json config in the APP record to configure things like prefix, suffix, and IP separator to format your domain name that will be returned by the PTR record. Check the screenshot of the zone above to know how the APP record should look like. Add the record and use the DNS Client tab to test any IP address with PTR request.