Skip to content
This repository was archived by the owner on Jan 25, 2023. It is now read-only.
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Reverse update of setup-systemd-resolved script
  • Loading branch information
Mirko Pluhar committed Nov 8, 2020
commit 369a538ce4cf2559931081034be3bb533a73fcdf
2 changes: 1 addition & 1 deletion modules/setup-systemd-resolved/setup-systemd-resolved
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function configure_systemd_resolved {
local -r consul_port="$3"

UBUNTU_VERSION=`lsb_release -s -r`
if [ "$UBUNTU_VERSION" == "18.04" ] || [ "$UBUNTU_VERSION" == "20.04" ]; then
if [ "$UBUNTU_VERSION" == "18.04" ]; then
log_info "Configuring systemd-resolved to forward lookups of the '$consul_domain' domain to $consul_ip:$consul_port in $CONSUL_DNS_MASQ_CONFIG_FILE"

sudo iptables -t nat -A OUTPUT -d localhost -p udp -m udp --dport 53 -j REDIRECT --to-ports $consul_port
Expand Down