TechnitiumSoftware / TechnitiumLibrary

A library for .net based applications.
https://technitium.com
GNU General Public License v3.0
101 stars 50 forks source link

Change DNS Records order #5

Closed kysel closed 2 years ago

kysel commented 2 years ago

Order DNS records working from TLD to the left, like e.g. azure DNS does it. This sorting is better because it moves subdomain just after to parent one. Before:

image

After:

image
ShreyasZare commented 2 years ago

Thanks for the PR. Will have a look at it.

ShreyasZare commented 2 years ago

Thanks again for the PR. I have implemented this using DNSSEC canonical comparison method that was developed for the DNSSEC feature. That way the ordering or records is as expected for NSEC records. This ordering will be almost what you wanted. Do update the the latest version and check the ordering.

kysel commented 2 years ago

Looks good, thanks!