Skip to content

Commit 6689378

Browse files
committed
adding Fix DNS step
1 parent 3558f20 commit 6689378

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,24 @@ jobs:
7272
with:
7373
service-key: ${{ secrets.TWINGATE_PUBLIC_REPO_KEY }}
7474

75+
- name: Fix DNS
76+
run: |
77+
echo "=== Remove Azure DNS from eth0 interface ==="
78+
sudo resolvectl dns eth0 ""
79+
80+
echo "=== Configure Twingate DNS properly ==="
81+
sudo resolvectl dns sdwan0 100.95.0.251 100.95.0.252
82+
sudo resolvectl domain sdwan0 delivery.puppetlabs.net
83+
84+
echo "=== Flush DNS cache ==="
85+
sudo resolvectl flush-caches
86+
87+
echo "=== Check new configuration ==="
88+
resolvectl status
89+
90+
echo "=== Test DNS resolution ==="
91+
nslookup artifactory.delivery.puppetlabs.net
92+
7593
- name: Checkout
7694
uses: actions/checkout@v3
7795
with:

.github/workflows/nightly.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,24 @@ jobs:
6969
with:
7070
service-key: ${{ secrets.TWINGATE_PUBLIC_REPO_KEY }}
7171

72+
- name: Fix DNS
73+
run: |
74+
echo "=== Remove Azure DNS from eth0 interface ==="
75+
sudo resolvectl dns eth0 ""
76+
77+
echo "=== Configure Twingate DNS properly ==="
78+
sudo resolvectl dns sdwan0 100.95.0.251 100.95.0.252
79+
sudo resolvectl domain sdwan0 delivery.puppetlabs.net
80+
81+
echo "=== Flush DNS cache ==="
82+
sudo resolvectl flush-caches
83+
84+
echo "=== Check new configuration ==="
85+
resolvectl status
86+
87+
echo "=== Test DNS resolution ==="
88+
nslookup artifactory.delivery.puppetlabs.net
89+
7290
- name: Checkout
7391
uses: actions/checkout@v3
7492
with:

0 commit comments

Comments
 (0)