Welcome! Log In Create A New Profile

Advanced

Re: Resolve hostname to IPv6 address in listen directive

Piotr Sikora
August 27, 2010 03:44AM
Hi Matthias,

> 1. Remove ipv6only and make IPV6_V6ONLY default as specified in
> RFC 4038.

"ipv6only" should be deprecated (ignored) and not removed.

> 2. Use getaddrinfo() instead of gethostbyname().

Agreed, but it should also fall-back to gethostbyname2() and finally to
gethostbyname().

(Are there any systems that have gethostbyname2() but don't have
getaddrinfo()?)

> 3. Listen on multiple IPv4 or IPv6 addresses if a hostname was
> given in a listen directive.

Agreed.

> 4. Add the options “ipv4” and “ipv6” to the listen directive
> to set ai_family to AF_INET or AF_INET6 in struct addrinfo. This
> could be useful if you want to serve a different site depending
> on the address family the request came from or to simple disable
> IPv6 or IPv4 even if the hostname has an associated address.

Agreed.

> getaddrinfo() can resolve services and numeric addresses itself, so I
> don't see need for the square bracket notation as in RFC 3986, a simple
> space would be enough and would make parsing much easier:
>
> listen 2001:db8::1 www;

Yeah, I don't see the need for square brackets.

> What do you think about this?

Do you have patch for this? :)

Best regards,
Piotr Sikora < piotr.sikora@frickle.com >



_______________________________________________
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 2348 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 1187 August 25, 2010 02:46PM

Re: Resolve hostname to IPv6 address in listen directive

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

Re: Resolve hostname to IPv6 address in listen directive

Piotr Sikora 1110 August 25, 2010 02:02PM

Re: Resolve hostname to IPv6 address in listen directive

Maxim Dounin 1132 August 25, 2010 03:02PM

Re: Resolve hostname to IPv6 address in listen directive

Piotr Sikora 1359 August 27, 2010 03:38AM

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

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

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

Matthias-Christian Ott 1517 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 1350 August 27, 2010 03:44AM



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

Online Users

Guests: 229
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