nsuresh
asked on
domain name
I have a program which generates the fqdn of a host using sysinfo() call. I need to get the same name from a remote host . I am using gethostbyname(). Sometimes these names dont match. I find extra domain names in sysinfo() output. Is this because of a wrong set up ?. Is it okay for a user to have the nis domainname seprated from the dns domain ?
ASKER
using sysinfo you can set a parameter SI_SRPC_DOMAIN, and get the full domain name. now add this to your host name you can get the FQDN.
ok now you mean to say it is legal for a set up to have NIS domain and internet domain different ?
ok now you mean to say it is legal for a set up to have NIS domain and internet domain different ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
nsuresh:
This old question needs to be finalized -- accept an answer, split points, or get a refund. For information on your options, please click here-> http:/help/closing.jsp#1
EXPERTS:
Post your closing recommendations! No comment means you don't care.
This old question needs to be finalized -- accept an answer, split points, or get a refund. For information on your options, please click here-> http:/help/closing.jsp#1
EXPERTS:
Post your closing recommendations! No comment means you don't care.
ASKER
ahoffmans answer really didnt fully answer my question. Anyway it did help me.
so giving points..sorry about the time..didnt notice this
so giving points..sorry about the time..didnt notice this
gethostbyname() is what you need (but requires a proper setup of the resolver).
NIS-domain and internet-domain are completely different, usually, it just may be the same.