Docker container unable to resolve private DNS from Debian Host

  • 18 September 2023
  • 0 replies
  • 86 views

Badge

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

Be the first to reply!

Reply