PowerDNS / pdns

PowerDNS Authoritative, PowerDNS Recursor, dnsdist
https://www.powerdns.com/
GNU General Public License v2.0
3.63k stars 905 forks source link

Please stable-sort incoming AXFR records #2694

Open zeha opened 9 years ago

zeha commented 9 years ago

I'm slaving off a Microsoft DNS, and every now and then the order of some records change in the written bindbackend zone file.

Example diff (snippet):

@@ -15,8 +15,8 @@ _ldap._tcp.Core._sites        600     SRV     0       100 389 ad01
 _gc._tcp.Fleischmarkt._sites   600     SRV     0       100 3268 ad02
 _kerberos._tcp.Fleischmarkt._sites     600     SRV     0       100 88 ad02
 _ldap._tcp.Fleischmarkt._sites 600     SRV     0       100 389 ad02
-_gc._tcp       600     SRV     0       100 3268 ad01
 _gc._tcp       600     SRV     0       100 3268 ad02
+_gc._tcp       600     SRV     0       100 3268 ad01
 _kerberos._tcp 600     SRV     0       100 88 ad02
 _kerberos._tcp 600     SRV     0       100 88 ad01
 _kpasswd._tcp  600     SRV     0       100 464 ad02

This is certainly valid, but annoying.

Habbie commented 7 years ago

Thanks to edit-zone and friends, we probably even have code for this now.