OK - thank you all for your contributions.
/T
--
http://mail.python.org/mailman/listinfo/python-list
On 22 Aug, 13:26, Roy Smith wrote:
> In article
> <356978ef-e9c1-48fd-bb87-849fe8e27...@p5g2000vbl.googlegroups.com>,
> Tomas Lidén wrote:
>
> > In what order are the addresses returned by socket.gethostbyname_ex()?
>
> > We know that gethostbyname()
On 22 Aug, 12:36, Chris Angelico wrote:
>
> Explicit is better than implicit. Instead of using the order, have a
> config file that chooses the one(s) you want by name or IP address. Of
> course, if you're on Unix/Linux, you can use the interface name (eth0,
> eth1, etc) with a fair degree of reli
On 22 Aug, 12:06, Cameron Simpson wrote:
>
> It would not surprise me if the order was related to the order a scan of
> the system interfaces yields information, and I would imagine that may
> be influenced by the order in which the interfaces were initialised.
>
> So getting the LAN first may mer
On 22 Aug, 10:15, Steven D'Aprano wrote:
> On Mon, 22 Aug 2011 04:37 pm Tomas Lidén wrote:
>
> > In what order are the addresses returned by socket.gethostbyname_ex()?
>
> > We know that gethostbyname() is indeterministic but hope that
> > gethostbyname_ex() ha
In what order are the addresses returned by socket.gethostbyname_ex()?
We know that gethostbyname() is indeterministic but hope that
gethostbyname_ex() has a specified order.
Best regards,
Tomas
--
http://mail.python.org/mailman/listinfo/python-list