0xdeadbad has asked for the wisdom of the Perl Monks concerning the following question:
I need to deconstruct tinydns/djbdns SRV records to build zone files for Bind.
The records are created by our inhouse management system and stored in LDAP.
It breaks down as
\000\012=SRV priority where the first number is a multiple of 256 and the second is the remainder so \000\012 = (0*256) + 10 = 10
\000\144=SRV weight, as before \000\144 = (0*256) + 100 = 100
\023\304=SRV port, \023\304 = (19*256) + 196 = 5060
\003pbx\007example\003com\000 = SRV target, split on dots with the octal denoting how many chars in each part: pbx.example.com.
The final part after ":" is the TTL in decimal. 3600
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: deconstructing tinydns(djbdns) SRV records (updated)
by haukex (Archbishop) on Aug 25, 2017 at 10:36 UTC | |
by 0xdeadbad (Novice) on Aug 25, 2017 at 10:52 UTC | |
|
Re: deconstructing tinydns(djbdns) SRV records
by Corion (Patriarch) on Aug 25, 2017 at 09:56 UTC | |
by VinsWorldcom (Prior) on Aug 25, 2017 at 10:49 UTC | |
by 0xdeadbad (Novice) on Aug 25, 2017 at 10:44 UTC | |
by Corion (Patriarch) on Aug 25, 2017 at 10:46 UTC | |
|
Re: deconstructing tinydns(djbdns) SRV records
by 0xdeadbad (Novice) on Aug 25, 2017 at 10:55 UTC |