Re: Getting multiple IP addresses using luasocket
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Getting multiple IP addresses using luasocket
- From: Paul K <paulclinger@...>
- Date: 2014年1月15日 09:34:43 -0800
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.
Paul.