Ask the community

Docker container unable to resolve private DNS from Debian Host

donc1
New Contributor

Hi,

 

Is there extra configuration needed/supported for resolving private DNS from within Docker container running on Debian 11 Host with Netskope ON ?

 

On the Debian 11 Host itself, private app resolves OK.

However the running Docker Container is unable to resolve private apps DNS.

 

container resolv.conf

 

root@f5eaa8f3589c:~# cat /etc/resolv.conf
nameserver 127.0.0.11
options ndots:0

 

in Windows 10 host, running Docker Container resolves private app DNS OK.

My internal network router is 192.168.1.1

 

> cat/etc/resolv.conf

# DNS requests are forwarded to the host. DHCP DNS options are ignored

nameserver 192.168.65.7

 

 

Workaround:

use "host" network

docker run --name swiss-army-knife4 --net="host" -itd leodotcloud/swiss-army-knife

 

 

 

 

0 Replies 0
Subscribe
Labels

In order to view this content, you will need to sign in to your account. Simply click the "Sign In" button below

Sign In