diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-08-15 16:02:29 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-08-15 16:02:29 +0200 |
commit | c627729fc49d59ffcecc09555a34d9dd139927ce (patch) | |
tree | 7c5477344b67849fc51105ce1b753acc94c858a5 /src/network | |
parent | 8612e9365333d35773a08509b1d80a98911acb44 (diff) |
networkctl: show acquired system domains
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/networkctl.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/network/networkctl.c b/src/network/networkctl.c index 8f2c1b3975..6253cbf582 100644 --- a/src/network/networkctl.c +++ b/src/network/networkctl.c @@ -427,7 +427,7 @@ static int link_status_one(sd_rtnl *rtnl, struct udev *udev, const char *name) { if (!strv_isempty(dns)) dump_list(" DNS: ", dns); if (!strv_isempty(domains)) - dump_list(" Domains: ", domains); + dump_list(" Domain: ", domains); if (!strv_isempty(ntp)) dump_list(" NTP: ", ntp); @@ -454,7 +454,7 @@ static int link_status(char **args, unsigned n) { if (n <= 1 && !arg_all) { _cleanup_free_ char *operational_state = NULL; - _cleanup_strv_free_ char **dns = NULL, **ntp = NULL; + _cleanup_strv_free_ char **dns = NULL, **ntp = NULL, **domains = NULL; _cleanup_free_ struct local_address *addresses = NULL; const char *on_color_operational, *off_color_operational; int i, c; @@ -480,6 +480,10 @@ static int link_status(char **args, unsigned n) { if (!strv_isempty(dns)) dump_list(" DNS: ", dns); + sd_network_get_domains(&domains); + if (!strv_isempty(domains)) + dump_list(" Domain: ", domains); + sd_network_get_dns(&ntp); if (!strv_isempty(ntp)) dump_list(" NTP: ", ntp); |