8000 fix dnsmasq config · coder/coder@e866af2 · GitHub
[go: up one dir, main page]

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)
0