You could add gethostbyname() as a GCI subroutine.  Take a look at getpid() as a 
template (in the UV account, LIST GCI).

----- Original Message -----
From: "Craig Bennett" <[EMAIL PROTECTED]>
Date: Fri, 30 Apr 2004 15:34:06 +1000
To: "U2 Users Discussion List" <[EMAIL PROTECTED]>
Subject: Name Resolution

> Hi All,
> 
> does anyone currently do name resolution from within UV?
> 
> I have a need to determine the dns name corresponding to an IP address under
> UV 10.0 on AIX, Linux and NT.
> I would prefer not execute an external utility and cannot use GCI.
> 
> My current thoughts are to create a sockets client to query a DNS server,
> but I did wonder if there was a better way to do this.
> 
> ICONV("203.42.18.135", "DNSPTR")     ;)
> 
> thanks,
> 
> 
> Craig
> 
> -- 
> u2-users mailing list
> [EMAIL PROTECTED]
> http://www.oliver.com/mailman/listinfo/u2-users
> 

-- 
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users

Reply via email to