Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Troubles with name resolution when running ala-docker on networks that block certain DNS traffic... #26

Open
mskyttner opened this issue Apr 11, 2018 · 1 comment

Comments

@mskyttner
Copy link
Collaborator

mskyttner commented Apr 11, 2018

If running on a corporate or guest network that is strict and blocks DNS traffic and forces usage of specific DNS servers, containers may not be able to reach out to the Internet using default settings.

A possible workaround could be to modify and hard-code settings for the local name resolution servers in the docker-compose.yml file within the dnsmasq section.

On some Linux OSes this command can be used to find the DNS servers in use:

nmcli dev show | grep DNS

SO post on finding what DNS servers are in use

for example the startup command for dnsmasq could be edited to use specific hard coded name DNS server to look like this assuming DNS ips in the corporate network are 130.238.96.1 and 130.238.98.11:

command: --log-facility=- --server=127.0.0.11 --server=130.238.96.1 --server=130.238.98.11 --server=193.10.57.11 --server=8.8.8.8 --server=172.16.0.72 --server=172.16.0.7 --neg-ttl=3600 --cache-size=1000 --max-cache-ttl=3600 --min-cache-ttl=3600 --all-servers

@mskyttner
Copy link
Collaborator Author

Suggestions for improvements and ideas for achieving a minimal config that mimics a production setup (with name resolution and SSL) on a development box are appreciated!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant