Security News > 2021 > July > How to define DNS in Docker containers

How to define DNS in Docker containers
2021-07-08 18:27

Jack Wallen shows you how to configure specific DNS servers for your Docker container deployments.

You do not want your containers using the same DNS as your hosts.

There might be several reasons you don't want your containers using the same DNS as their hosts.

What do you do? How do you define DNS for Docker containers, such that it won't pick up the DNS of the hosting machine?

I'm going to show you how to deploy Docker containers with DNS pre-configured.

Figure B. And that's all there is to defining DNS in your Docker containers.


News URL

https://www.techrepublic.com/article/how-to-define-dns-in-docker-containers/#ftag=RSS56d97e7

Related vendor

VENDOR LAST 12M #/PRODUCTS LOW MEDIUM HIGH CRITICAL TOTAL VULNS
Docker 24 3 26 28 16 73