@@ -22,26 +22,30 @@ jobs:
2222
2323 runs-on : ' ubuntu-latest'
2424 steps :
25- - name : Debug internal DNS resolution
26- run : |
27- echo "=== Testing internal domain resolution ==="
28- nslookup artifactory.delivery.puppetlabs.net || echo "nslookup failed"
29- dig artifactory.delivery.puppetlabs.net || echo "dig failed"
30-
31- echo "=== Current DNS servers ==="
32- cat /etc/resolv.conf
33-
34- echo "=== Twingate status ==="
35- sudo systemctl status twingate || echo "systemctl not available"
36- ps aux | grep twingate || echo "no twingate processes visible"
37-
3825 - name : Connect to Twingate
3926 uses : twingate/github-action@v1
4027 with :
41- service-key : ${{ secrets.TWINGATE_PUBLIC_REPO_KEY }}
28+ service-key : ${{ secrets.TWINGATE_PUBLIC_REPO_KEY }}
4229
4330 env :
44- TWINGATE_LOG_LEVEL : debug
31+ TWINGATE_LOG_LEVEL : debug
32+
33+ - name : Fix DNS
34+ run : |
35+ echo "=== Current DNS config ==="
36+ cat /etc/resolv.conf
37+
38+ echo "=== Remove Azure DNS interference (as documented) ==="
39+ sed '/^nameserver 168.63.129.16$/d; /^search/d' /etc/resolv.conf > /tmp/resolv.conf && cat /tmp/resolv.conf > /etc/resolv.conf
40+
41+ echo "=== Updated DNS config ==="
42+ cat /etc/resolv.conf
43+
44+ echo "=== Check what Twingate created ==="
45+ resolvectl status || systemd-resolve --status
46+
47+ echo "=== Test internal domain resolution ==="
48+ nslookup artifactory.delivery.puppetlabs.net
4549
4650 - name : Checkout current PR code
4751 uses : actions/checkout@v4
0 commit comments