Skip to content

Commit

Permalink
fix: update the dnsconfig script to handle multiple interfaces (#24800)
Browse files Browse the repository at this point in the history
  • Loading branch information
Juanadelacuesta authored Jan 7, 2025
1 parent ab39f19 commit 2eb2b6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions e2e/terraform/packer/ubuntu-jammy-amd64/dnsconfig.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ cp /tmp/resolv.conf /etc/resolv.conf

# need to get the interface for dnsmasq config so that we can
# accomodate both "predictable" and old-style interface names
IFACE=$(ip route | grep default | awk '{print $5}')
IFACE=$(ip route | grep default | awk '{print "interface="$5}')

cat <<EOF > /tmp/dnsmasq
port=53
resolv-file=/var/run/dnsmasq/resolv.conf
bind-interfaces
interface=docker0
interface=lo
interface=$IFACE
$IFACE
listen-address=127.0.0.1
server=/consul/127.0.0.1#8600
EOF
Expand Down

0 comments on commit 2eb2b6c

Please sign in to comment.