2

How can I validate host name \ domain name in Linux, C++?

In Windows I use for this purpose DnsValidateName - is there a good replacement for that in Linux GCC?

Thank you.

Allen L
  • 127
  • 1
  • 11

1 Answers1

1

Well you could use some reqular expressions. Take one of these proposed here with some regex library.

Community
  • 1
  • 1
Draco Ater
  • 20,820
  • 8
  • 62
  • 86