[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Getting multiple IP addresses using luasocket
 
- From: Sean Conner <sean@...>
 
- Date: Wed, 15 Jan 2014 12:50:00 -0500
 
It was thus said that the Great Paul K once stated:
> Hi Oliver,
> 
> > socket.dns.toip() calls internally something like gethostbyname, which returns a pointer to a struct hostent.
> > If you don't get this, you may have to change something in the socket library's sources, or in your OS :-)
> 
> I do get the table with ip addresses, but when the domain name can't
> be resolved, I git `nil` and an error message without any aliases or
> alternative IPs.
  Which is to be expected.  DNS is just a distributed key/value (more or
less) database.  If the key you are looking for doesn't exist, there's
nothing to return.
  -spc