HostNameToAddress Function

Bridger Maxwell bridgeyman at gmail.com
Sun Nov 5 21:20:08 CST 2006


I found out some more information.  Apparently the nslookup Unix command
returns the following:
nslookup is deprecated and may be removed from future releases.
Consider using the `dig' or `host' programs instead.  Run nslookup with
the `-sil[ent]' option to prevent this message from appearing.
Server:         192.168.0.1
Address:        192.168.0.1#53

Non-authoritative answer:
158.36.131.209.in-addr.arpa     name = f1.www.vip.sp1.yahoo.com.

Authoritative answers can be found from:
36.131.209.in-addr.arpa nameserver = ns5.yahoo.com.
36.131.209.in-addr.arpa nameserver = ns7.yahoo.com.
36.131.209.in-addr.arpa nameserver = ns1.yahoo.com.
36.131.209.in-addr.arpa nameserver = ns2.yahoo.com.
36.131.209.in-addr.arpa nameserver = ns3.yahoo.com.
ns1.yahoo.com   internet address = 66.218.71.63
ns2.yahoo.com   internet address = 68.142.255.16
ns3.yahoo.com   internet address = 217.12.4.104
ns5.yahoo.com   internet address = 216.109.116.17
ns7.yahoo.com   internet address = 68.142.226.82

I guess that means that nslookup has been removed from her machine?  Is that
what Revolution uses for hostNameToAddress()?

  TTFN
    Bridger

On 11/5/06, Bridger Maxwell <bridgeyman at gmail.com> wrote:
>
> Hey,
>   I made a networking stack that retrieves information about the
> computer.  The first check it does is hostName().  This returns the name of
> the machine.  Then I take the result of that and run it through
> hostNameToAddress() to find the IP address.  This works fine on my computer,
> but one one of my friends, the hostNameToAddress() doesn't return anything.
> The hostName() function still works though.  We are both running Mac OSX.
> Has anyone had experience with this?  Is there a different way to find the
> IP address?
>
>   TTFN
>     Bridger
>



More information about the use-livecode mailing list