Skip to content

Commit f3ab888

Browse files
committed
Add more resolv checks
1 parent ca88eea commit f3ab888

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,18 @@ systemctl is-active systemd-networkd || echo "systemd-networkd disabled"
2626
# Check what's managing your interface
2727
networkctl status $IFACE
2828

29+
# Check network configs
30+
echo "Checking 10-netplan-eth0.network"
31+
if [ -f /run/systemd/network/10-netplan-eth0.network ]; then
32+
cat /run/systemd/network/10-netplan-eth0.network
33+
elif [ -d /run/systemd/network/ ]; then
34+
echo "ls -la /run/systemd/network/"
35+
ls -la /run/systemd/network/
36+
else
37+
echo "ls -la /run/systemd/"
38+
ls -la /run/systemd/
39+
fi
40+
2941
# Get current DNS server
3042
echo "Current configuration:"
3143
resolvectl status "$IFACE" | grep -E 'Current DNS Server:|DNS Servers:'

0 commit comments

Comments
 (0)