Also, if your local config does indeed require DNS to be resolvable when nginx starts, I see 2 possible fixes/workarounds for you.
1) you could use a systemd drop-in snippet to tune the startup order like you did in your patch.
2) you could put the IP(s) and DNS name(s) under /etc/hosts. This will only work for static IPs though.
Also, if your local config does indeed require DNS to be resolvable when nginx starts, I see 2 possible fixes/workarounds for you.
1) you could use a systemd drop-in snippet to tune the startup order like you did in your patch.
2) you could put the IP(s) and DNS name(s) under /etc/hosts. This will only work for static IPs though.