Closed roarnyg closed 3 years ago
I found similar exceptions on this domains, too:
cb25b8a2-b691-4fcb-ba15-078b134d7d6b.cloudapp.net d6uz09z33tnrv.cloudfront.net dts-eastus-qa.azurewebsites.net
I really like your tool, and hope there will be a fix.
That is so bizarre... I'll look into it - thanks @roarnyg
Aaaah I have found the problem - the tldextract library has these domains as TLDs for some reason.. I'll see if I can figure out a fix.
Hey - I had to fork the tldextract library and I changed it to use the IANA TLD data here https://data.iana.org/TLD/tlds-alpha-by-domain.txt instead of the public suffix data, which now includes a bunch of things that aren't strictly TLDs, including root domains of cloud providers. Should all be fixed now - just update using go get -u github.com/hakluke/haktldextract
.
Test output:
~$ echo flyeagle-awstest-1895000007.us-east-1.elb.amazonaws.com | haktldextract
amazonaws.com
~$ echo "cb25b8a2-b691-4fcb-ba15-078b134d7d6b.cloudapp.net
d6uz09z33tnrv.cloudfront.net
dts-eastus-qa.azurewebsites.net" | haktldextract
cloudapp.net
azurewebsites.net
cloudfront.net
~$
Thanx for replying and fixing so fast. Good work!
I ran that go get -u github.com/hakluke/haktldextract
command, but I only get the same results as before. It can be that I have to restart or flush dns, anyways. I'll try that later.
Hey again, sorry I forgot an important step, you will also need to rm /tmp/tld.cache ... The filename may be slightly different, I can't quite remember!
Looks like Haktldextract struggles when working with amazonas.com domains. See example:
and
just a dot was returned.
Are there any fixes for this?