TechnitiumSoftware / DnsServer

Technitium DNS Server
https://technitium.com/dns/
GNU General Public License v3.0
4.33k stars 423 forks source link

[Enhancement] In reverse zone views like 8.168.192.in-addr.arpa sorting by name as numbers #1079

Open LightTemplar opened 3 days ago

LightTemplar commented 3 days ago

In reverse zone views name field is a part of IP address, also - number. I suggest to sort it not alphabetically, but as numbers, i.e. not "1, 102, 2, 201, 3" but "1, 2, 3, 102, 201"

ShreyasZare commented 3 days ago

Thanks for the request. The default sort order is as per the DNS name ordering in lexical form which is the same for all the zones. This order allows manually inspecting records when the zone is signed with DNSSEC. The other thing is that the records can contain two octets if the reverse zone is for a /16 network. The table view component sorts only the listed entries that are visible so changing that too would give inconsistent results.

LightTemplar commented 2 days ago

The default sort order is as per the DNS name ordering in lexical form which is the same for all the zones.

I would suggest then switching between sorting modes on every click. And this would possibly need to add some sort of indication of current mode, which (I imagine) could work with following after column name: ↓ᵃᵇᶜ, ↑ᵃᵇᶜ, ↓¹²³, ↑¹²³.

The other thing is that the records can contain two octets

And those could be sorted as numbers too: first octet, then second (then third) etc.

The table view component sorts only the listed entries that are visible

If I need to inspect them sorted I will (and already do) let it show max possible rows at once.

ShreyasZare commented 1 day ago

Will see how this can be implemented. It will however take a while for this to be available since there is already some core features planned for next few major releases.