Welcome! Log In Create A New Profile

Advanced

Re: Resolve hostname to IPv6 address in listen directive

Maxim Dounin
August 25, 2010 03:02PM
Hello!

On Wed, Aug 25, 2010 at 08:01:17PM +0200, Piotr Sikora wrote:

> Hi,
>
> >Note well: listen with hostname always uses *one* address returned
> >by hostname lookup, the first one returned by gethostbyname(). It
> >doesn't make sense to attempt to use it with hostname which
> >resolves to multiple addresses.
>
> But is that correct behavior? Shouldn't nginx listen on all of them?

I've just outlined how it works. If you feel brave enough - you
may try to produce patch to which changes "listen" to use all
addresses hostname resolves to. But I suspect it's size will be
bigger than the problem deserves.

> >I believe correct solution would be to make
> >
> > listen example.com;
> >
> >to use ipv6 address if no ipv4 addresses were found.
>
> Why not on both?

Just to preserve "how it works".

Maxim Dounin

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Resolve hostname to IPv6 address in listen directive

Matthias-Christian Ott 3682 August 25, 2010 03:28AM

Re: Resolve hostname to IPv6 address in listen directive

mike 2345 August 25, 2010 03:32AM

Re: Resolve hostname to IPv6 address in listen directive

Maxim Dounin 1198 August 25, 2010 07:06AM

Re: Resolve hostname to IPv6 address in listen directive

Matthias-Christian Ott 1235 August 25, 2010 01:40PM

Re: Resolve hostname to IPv6 address in listen directive

Maxim Dounin 1186 August 25, 2010 02:46PM

Re: Resolve hostname to IPv6 address in listen directive

Matthias-Christian Ott 1453 August 25, 2010 07:56PM

Re: Resolve hostname to IPv6 address in listen directive

Piotr Sikora 1108 August 25, 2010 02:02PM

Re: Resolve hostname to IPv6 address in listen directive

Maxim Dounin 1130 August 25, 2010 03:02PM

Re: Resolve hostname to IPv6 address in listen directive

Piotr Sikora 1358 August 27, 2010 03:38AM

[PATCH] Make ipv6only default (was: Re: Resolve hostname to IPv6 address in listen directive)

Matthias-Christian Ott 1161 August 27, 2010 06:04PM

Re: [PATCH] Make ipv6only default (was: Re: Resolve hostname to IPv6 address in listen directive)

Matthias-Christian Ott 1515 August 28, 2010 06:56PM

Re: Resolve hostname to IPv6 address in listen directive

Matthias-Christian Ott 1316 August 25, 2010 08:26PM

Re: Resolve hostname to IPv6 address in listen directive

Piotr Sikora 1349 August 27, 2010 03:44AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 195
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready