1

cat /var/log/nginx/error.log

*644181 no resolver defined to resolve

website shows

502 Bad Gateway

I read these:


I've discovered that I need to set a resolver variable for nginx, but I still can't seem to figure out what it should be set to. Many answers seem to throw out a random IP without any explanation as to how they got that.

Any information on this subject would be appreciated.

Seph Reed
  • 8,797
  • 11
  • 60
  • 125

1 Answers1

1

By default, it seems to be 127.0.0.1 -> https://serverfault.com/a/973311/547377


In docker it may be 127.0.0.11

Note: for docker, it's DNS resolver resides at 127.0.0.11, so...

found in the comment section here: https://serverfault.com/a/593003/547377


127.0.0.1 worked for me

Seph Reed
  • 8,797
  • 11
  • 60
  • 125