Never mind, I found it.
 
Net::Domain is looking in /etc/resolv.conf and instead of getting the CORRECT information out of the "domain <domainname>" line, it is picking up the INCORRECT information out of the "search <domainname>" line
 


Dave Blakemore <[EMAIL PROTECTED]> wrote:
Does anyone know how Net::Domain tries to determine the domain on an AIX (unix) box?
 
It works fine on all our servers except 1 and that one returns the correct hostname but incorrect domain name and I would like to try and figure out what the problem is.   I am guessing it has something to do with the configuration on the server.....
 
The server in question follows the format of:
hostname.xxxxxx.yyy.com
I can ping hostname and get the correct domain
I can do a host <ipaddress> and get the correct domain
but Net::Domain returns
hostname.yyy.com
with the xxxxxx section missing.
 
As another alternative, anyone have a better method of determining the hostname and domain?
 
 


_______________________
Dave Blakemore
[EMAIL PROTECTED]
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


_______________________
Dave Blakemore
[EMAIL PROTECTED]
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to