Valid FQDN !
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
Hi, I have to get the Fully qualified name of my machine. I am using the function gethostbyname, hostent -> h_name attibute for the fully qualified name. My problem is, I can modify the "Primary DNS Suffix" value of my machine. The function gethostbyname returns me "MyMachineName.Primary DNS Suffix Value", if the Primary DNS Suffix given is invalid also. All the other settings(eg. DNS Server) are perfect. My Question is, How can i get the Valid FQDN? Or i have to do something to validate it? Thanks