Skip to content

Commit e866af2

Browse files
committed
fix dnsmasq config
1 parent 314e219 commit e866af2

File tree

1 file changed

+2
-1
lines changed
  • examples/templates/docker-devcontainer

1 file changed

+2
-1
lines changed

examples/templates/docker-devcontainer/main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,9 @@ resource "coder_agent" "main" {
105105
sudo apt-get update -y
106106
sudo apt-get install -y dnsmasq
107107
108-
echo "resolv-file=/etc/resolv.conf" | sudo tee /etc/dnsmasq.conf
108+
echo "no-hosts" | sudo tee /etc/dnsmasq.conf
109109
echo "address=/host.docker.internal/$dns_ip" | sudo tee -a /etc/dnsmasq.conf
110+
echo "resolv-file=/etc/resolv.conf" | sudo tee -a /etc/dnsmasq.conf
110111
echo "no-dhcp-interface=" | sudo tee -a /etc/dnsmasq.conf
111112
echo "bind-interfaces" | sudo tee -a /etc/dnsmasq.conf
112113
echo "listen-address=127.0.0.1,$dns_ip" | sudo tee -a /etc/dnsmasq.conf

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy