Skip to content

Commit 2cf5f75

Browse files
committed
Add some extra resolvectl debugging
1 parent f0a7516 commit 2cf5f75

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

ext/standard/tests/dns/resolv-setup.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@ fi
1717

1818
echo "Using interface: $IFACE"
1919

20+
# Check if NetworkManager is running
21+
systemctl is-active NetworkManager || echo "NetworkManager disabled"
22+
23+
# Check if systemd-networkd is running
24+
systemctl is-active systemd-networkd || echo "systemd-networkd disabled"
25+
26+
# Check what's managing your interface
27+
networkctl status eth0
28+
2029
# Get current DNS server
2130
echo "Current configuration:"
2231
resolvectl status "$IFACE" | grep -E 'Current DNS Server:|DNS Servers:'
@@ -33,10 +42,16 @@ resolvectl revert "$IFACE"
3342
# Set DNS with local server FIRST (this makes it primary)
3443
resolvectl dns "$IFACE" "$LOCAL_DNS" "$ORIGINAL_DNS"
3544

45+
# Flush DNS cache
46+
resolvectl flush-caches
47+
3648
# Confirm setup
3749
echo -e "\nUpdated configuration:"
3850
resolvectl status
3951

52+
# Check again what's managing your interface
53+
networkctl status eth0
54+
4055
echo -e "\nTesting DNS resolution..."
4156

4257
# Test if our local DNS is working

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy