So i came across the following How to validate domain name in PHP?
But domain name registrars do not let you register the following two:
is_valid_domain_name? [a.b]
is_valid_domain_name? [xn--fsqu00a.xn--0zwm56d]
Because they do not allow you to register single letter/numeric domains, nor domains seperating words or letters/numbers with a fullstop or domains with symbols etc does that mean these domains are invalid and can never be used?
It makes me curious if this PHP code is accurate and how you know if you was to input a domain to it that could be registered?
The code accepts those two and they both can not be registered by any domain registrar I have found so I think this code would not be accurate.
