[QUOTE]
inet_aton HOSTNAME
Takes a string giving the name of a host, and translates that to the 4-byte string (structure).
Takes arguments of both the 'rtfm.mit.edu' type and '18.181.0.24'. If the host name cannot be resolved, returns undef. For multi-homed hosts (hosts with more than one address), the first address found is returned.
[/QUOTE]This, from ActiveState help files on the 'Socket' library, implies inet_aton
does take domain names. But having just tried it, it didn't work. So either the help pages are wrong, or my server isn't set up for DNS, or I've got totally confused about something
Having said that, since gethostbyname() doesn't work on my system anyway, the chances that inet_aton will work are equally limited; Maybe domain names *do* work on a system where gethostbyname() fails? I obviously can't test this, since I've never got it to work....
Nick...
[This message has been edited by Nick Gilbert (edited 06-27-2000).]