File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -30,21 +30,21 @@ jobs:
3030 env :
3131 TWINGATE_LOG_LEVEL : debug
3232
33- - name : Fix DNS
33+ - name : Fix dns
3434 run : |
35- echo "=== Current DNS config ==="
36- cat /etc/resolv.conf
35+ echo "=== Remove Azure DNS from eth0 interface ==="
36+ sudo systemd-resolve --interface=eth0 --set-dns=""
3737
38- echo "=== Remove Azure DNS interference (as documented) ==="
39- sudo sed '/^nameserver 168.63.129.16$/d; /^search/d' /etc/resolv.conf > /tmp/resolv.conf && sudo cp /tmp/resolv.conf /etc/resolv.conf
38+ echo "=== Configure Twingate DNS properly ==="
39+ sudo systemd-resolve --interface=sdwan0 --set-dns=100.95.0.251 --set-dns=100.95.0.252 --set-domain=delivery.puppetlabs.net
4040
41- echo "=== Updated DNS config ==="
42- cat /etc/resolv.conf
41+ echo "=== Flush DNS cache ==="
42+ sudo systemd-resolve --flush-caches
4343
44- echo "=== Check what Twingate created ==="
45- resolvectl status || systemd-resolve --status
44+ echo "=== Check new configuration ==="
45+ resolvectl status
4646
47- echo "=== Test internal domain resolution ==="
47+ echo "=== Test DNS resolution ==="
4848 nslookup artifactory.delivery.puppetlabs.net
4949
5050 - name : Checkout current PR code
You can’t perform that action at this time.
0 commit comments