hosts file confuses nginx (IPv4 vs. IPv6)

Michael Herf

May 31, 2019
I use nginx in a container to log to syslog via "localhost". It recently stopped working entirely, until I changed the config to use "" instead of "localhost".

When I looked in my /etc/hosts I saw a "PVE" section with IPv6 config. This makes me suspect the problem is a change PVE made to /etc/hosts in the container, because I don't know why else it would have changed.

Currently it has an entry for "::1 localhost" (IPv6 style) appearing below the IPv4 entry. Is this a recent change that may have affected the container?


The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!