[157405] in North American Network Operators' Group
Re: Semi-automated L3 interface DNS records
daemon@ATHENA.MIT.EDU (Richard A Steenbergen)
Thu Oct 18 18:45:09 2012
Date: Thu, 18 Oct 2012 17:44:49 -0500
From: Richard A Steenbergen <ras@e-gerbil.net>
To: "Pedersen, Sean" <Sean.Pedersen@usairways.com>
In-Reply-To: <7EF4A8B03B0A3A44858C8B42E0DB236A0121BC431C41@PHX-52N-EXM04A.lcc.usairways.com>
Cc: "nanog@nanog.org" <nanog@nanog.org>
Errors-To: nanog-bounces+nanog.discuss=bloom-picayune.mit.edu@nanog.org
On Thu, Oct 18, 2012 at 12:57:16PM -0700, Pedersen, Sean wrote:
> Does anyone out there have any experience with a script, tool or applianc=
e=20
> that would help manage the creation and maintenance of DNS records for=20
> Layer 3 interfaces on routers and switches?
http://cluepon.net/ras/generate_dnsptr_generic_php
A relatively simple example using php, with the net-snmp module and Net_IPv=
4=20
=66rom PEAR. For extra bonus points, it parses your BGP state and uses any=
=20
neighbor ASNs it finds for the remote side of your /30 or /31s, and it=20
resolves point-to-point SVIs to physical ports by checking against the vlan=
=20
tables. The later part was only tested on Cisco 6500s, and I haven't touche=
d=20
that code (or those boxes) in many many years, so no guarantees about using=
=20
it on anything else. :)
Out of date DNS PTRs in traceroute make baby jesus cry, so please use=20
copiously.
--=20
Richard A Steenbergen <ras@e-gerbil.net> http://www.e-gerbil.net/ras
GPG Key ID: 0xF8B12CBC (7535 7F59 8204 ED1F CC1C 53AF 4C41 5ECA F8B1 2CBC)