The following bash line appears to get the default DNS server out of
NetworkManager:
systemd-resolve --status $( netstat -r | grep default | head -1 | awk '{
print $8 }' ) | grep 'DNS Server:' | sed -e 's/.*DNS Server:
\(\S\+\).*/\1/'
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1845824
Title:
Blueman NAP feeds bad DNS to clients on Ubuntu with dhcpd
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/blueman/+bug/1845824/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs