title: How to validate host name \ domain name in Linux - C++
body: <p>How can I validate host name \ domain name in Linux, C++?</p>
  
  <p>In Windows I use for this purpose DnsValidateName - is there a good replacement for that in Linux GCC?</p>
  
  <p>Thank you.</p>