]> git.ipfire.org Git - people/ms/network.git/commitdiff
ipv4-dhcp: Show DNS servers
authorStefan Schantl <stefan.schantl@ipfire.org>
Sun, 6 Sep 2015 14:45:21 +0000 (16:45 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sun, 6 Sep 2015 14:45:21 +0000 (16:45 +0200)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/hooks/configs/ipv4-dhcp

index cf246851694c5264b8a02aae66681b7d5c7eca6c..ef230821f1f08317736249fe2a0dbfaf53d8ab5b 100644 (file)
@@ -105,8 +105,13 @@ hook_status() {
        local gateway="$(db_get "${zone}/ipv4/remote-ip-address")"
        if isset gateway; then
                cli_print_fmt1 3 "Gateway" "${gateway}"
+               cli_space
+       fi
+       local dns_servers="$(db_get "${zone}/ipv4/domain-name-servers")"
+       if isset dns_servers; then
+               cli_print_fmt1 3 "DNS-Servers" "${dns_servers}"
+               cli_space
        fi
-       cli_space
 
        exit ${EXIT_OK}
 }