DNS resolution failing #1587
-
|
I have a brand new installation of netbox running through Docker. It appears that hostnames will not resolve within the container. The default dashboard widget for "NetBox News" displays an error:
I was trying to configure OIDC authentication and when selected it logs:
I launched a /bin/bash shell into the netbox container to try to troubleshoot, saw that dig was not available. I wanted to try to install it, and when I ran "apt-get update", that command failed with:
Looking up these hostnames from the Docker host as well as from other containers running on the same host works fine. I tried rebooting the entire host, no change. Is there something odd about DNS in this application/environment? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Well, answering my own question. I forgot this Docker environment (not netbox specific) DOES have a DNS quirk that requires me to manually specify the DNS server for containers. For Netbox, I fixed this by modifying docker-compose.override.yml to add: |
Beta Was this translation helpful? Give feedback.
Well, answering my own question. I forgot this Docker environment (not netbox specific) DOES have a DNS quirk that requires me to manually specify the DNS server for containers.
For Netbox, I fixed this by modifying docker-compose.override.yml to add: