Shouldn't tld_length be 5 instead of 6?
rstacruz opened this issue · comments
Rico Sta. Cruz commented
according to: https://gist.github.com/toolmantim/6632690
Philipe Fatio commented
example | com |
---|---|
- | 1 |
example | 123 | 123 | 123 | 123 | xip | io |
---|---|---|---|---|---|---|
- | 6 | 5 | 4 | 3 | 2 | 1 |
Rico Sta. Cruz commented
I believe that should be:
www | com | |
---|---|---|
- | domain | 1 |
(subdomain is www
)
example | 127 | 0 | 0 | 1 | xip | io |
---|---|---|---|---|---|---|
- | domain | 5 | 4 | 3 | 2 | 1 |
(subdomain is example
)
Philipe Fatio commented
But the setting is called TLD, top level domain, i.e. everything that comes after your domain. This is independent of the subdomain. So foo.bar.com
has a TLD length of 1, foo.bar.co.uk
has a TLD length of 2, foo.bar.127.0.0.1.xip.io
has a TLD length of 6.