How to get just 'domains:' from nmcli?

Chris Green cl at isbd.net
Sat Dec 16 13:20:59 UTC 2023


I'm sorry this is a bit of a 'user' question but it's doubtful if I'll
get an answer elsewhere I suspect.

When you run nmcli with no parameters you get, among other things a
section like this:-

    DNS configuration:
            servers: 1.1.1.1 8.8.4.4
            domains: zbmc.eu
            interface: enp0s25

I've read and re-read the man page for nmcli and I can't see how to
get just the above information, can anyone tell me how to do it or
point me at the right section of the man page please.

Thank you.

-- 
Chris Green


More information about the Networkmanager mailing list