1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

Added PTR record support for prettyzone (#182)

This commit is contained in:
Manatsawin Hanmongkolchai
2017-08-14 20:30:59 +07:00
committed by Tom Limoncelli
parent 92f09c83b1
commit 2ef6b9d6c5
2 changed files with 27 additions and 0 deletions

View File

@ -67,6 +67,12 @@ func (z *zoneGenData) Less(i, j int) bool {
if pa != pb {
return pa < pb
}
case dns.TypePTR:
ta2, tb2 := a.(*dns.PTR), b.(*dns.PTR)
pa, pb := ta2.Ptr, tb2.Ptr
if pa != pb {
return pa < pb
}
case dns.TypeCAA:
ta2, tb2 := a.(*dns.CAA), b.(*dns.CAA)
// sort by tag