lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

One other nice thing about OpenDNS is that you can simply do a reverse
lookup on to get your IP address.

This can be accomplished from luasocket using the following:

myip = socket.dns.toip("")

Keep in mind the host running the above code must be using the OpenDNS
nameservers for DNS.  The IP's of the OpenDNS servers are: and

On Sun, Apr 11, 2010 at 8:39 AM, Stuart P. Bentley
<> wrote:
> isn't terribly reliable, though (It's been down for days at a
> time in my experience), so I wouldn't use it in automation. OpenDNS provides
> (designed for use with apps for their DNS-O-Matic
> DNS update synchronization service) to the same ends, and it has all the
> reliability of an OpenDNS service (nobody has ever seen it go down, to my
> knowledge).
> On Sun, 11 Apr 2010 07:22:53 -0600, Enrico Colombini <> wrote:
>> Erik Lindroos wrote:
>>> I would suggest
>> Very convenient for automation, thanks.
>>   Enrico