This page:
http://nginx.org/en/docs/http/ngx_http_core_module.html#resolver
gives this example:
resolver 127.0.0.1 [::1]:5353;
What does the [::1]
and :5353
mean?
This page:
http://nginx.org/en/docs/http/ngx_http_core_module.html#resolver
gives this example:
resolver 127.0.0.1 [::1]:5353;
What does the [::1]
and :5353
mean?
[::1]
(or better::1
) is the IPv6 address for localhost (127.0.0.1
on IPv4) and:5353
is the port number. This line tells the server to try to resolve on port53
on127.0.0.1
via IPv4 or on port5353
on::1
(localhost) via IPv6.