.netemail-validation

Does an email address domain require a dot?


I noticed that when constructing instances of the System.Net.Mail.MailAddress class, it does not throw an exception for the email string foo@bar. This surprised me a bit since I don't recall seeing emails where the domain does not have a . in it. Is the domain bar really valid email address syntax?


Solution

  • There’s nothing stopping TLD registry operators serving a records at the apexes of their TLD zones. For example, if Verisign (the operator of the com TLD registry) wished, they could add an A record at the apex of the com TLD zone – com would then resolve to that IP, and your browser would connect to that IP when you visited https://com.

    Does any registry operator actually do this though? Surprisingly, the answer is yes.

    Source Shortest URLs on the Internet