[dsc] Smart second-level-domain mapping
Jerry Lundström
jerry at dns-oarc.net
Mon Oct 18 09:14:38 UTC 2021
Hi Klaus,
On 10/18/21 10:26 AM, Klaus Darilion wrote:
>
> AFAIK the second-level and third-level domain mapping is purely based on the number of dots. Hence, in our statistics, the most attractive second level domain is "co.uk". Would it be possible to implement a "smart" second-level domain mapping which counts example.com and example.co.uk on the same level? For example using the https://publicsuffix.org/list/public_suffix_list.dat list?
Sure, maybe you could add a lookup table (txt) that make "co.uk" be
treated like a single label for example.
But it would have some performance impact since it would need to look
this up on every packet.
It would be fairly simple to add a config for that file, read it into a
hash and add a lookup in dns_message.c/dns_message_QnameToNld() when
counting dots.
I'm hoping that you (or anyone else) have time to implement this?
Because I don't right now.
Cheers,
Jerry
More information about the dsc
mailing list