hostname based listen directive with A/AAAA RRs

Maxim Dounin mdounin at mdounin.ru
Wed Aug 15 00:06:10 UTC 2018


Hello!

On Tue, Aug 14, 2018 at 04:53:23PM -0400, Jim Popovitch wrote:

> Hello,
> 
> Will the following listen statement bind to all addrs (2xIPv4 and
> 2xIPv6)?
> 
> server {
>    listen www.nginx.org:443 ssh http2 ipv6only=no bind;

No.  If a hostname is used in the listen directive, it will use 
the first address the name resolves to.

-- 
Maxim Dounin
http://mdounin.ru/


More information about the nginx mailing list