How would I programaticly tell if a user specified domain name is actually a full valid domain, and not a TLD that is a sub domain? Ex:
user enters co.uk as their domain, this should be invalid as co.uk is actually a TLD even though it is like a sub domain.
My original idea involved importing a list of all the sub domain style TLDs into my program, but that list is massive. How do programs like cpanel handle this when a user enters a domain?
user enters co.uk as their domain, this should be invalid as co.uk is actually a TLD even though it is like a sub domain.
My original idea involved importing a list of all the sub domain style TLDs into my program, but that list is massive. How do programs like cpanel handle this when a user enters a domain?