PDA

View Full Version : domain name?


angoyal
08-05-2003, 06:03 PM
how does a person go about getting the domain name of the machine they are on (besides opening up /etc/resolv.conf )


is there some system call that will return the domain name?

most system calls are returning me just the hostname, I need the fully qualified domain name (FQDM)

ie

mybox.something.com

RobSeace
08-05-2003, 08:01 PM
See question 2.24 in the FAQ proper: How can I find the full hostname
(FQDN) of the system I'm running on? (http://www.developerweb.net/forum/viewtopic.php?t=37)...