]> git.ipfire.org Git - people/ms/network.git/commitdiff
Change dns command to dns-server.
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 13 Oct 2012 19:39:42 +0000 (19:39 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 13 Oct 2012 19:39:42 +0000 (19:39 +0000)
man/Makefile
man/network-config.8.in
man/network-dns-server.8.in [moved from man/network-dns.8.in with 77% similarity]
man/network.8.in
network

index fba30cb4a79f18b9d70f10ec3c5c2761edb9442f..d4d266389310ddb1d1e57848e710340bc4044ee6 100644 (file)
@@ -29,7 +29,7 @@ MANPAGES8   = \
        network.8 \
        network-config.8 \
        network-device.8 \
-       network-dns.8 \
+       network-dns-server.8 \
        network-route.8 \
        network-zone.8 \
        network-zone-bridge.8 \
index 03de638b49621869a3cb8d958cc997c060767985..235a573c419771cb6a24cb97981e37e90360a6be 100644 (file)
@@ -37,7 +37,7 @@ console.
 .PP
 
 .SH SEE ALSO
-network(8), network-dns(8)
+network(8), network-dns-server(8)
 
 .SH AUTHOR
 Michael Tremer (michael.tremer@ipfire.org)
similarity index 77%
rename from man/network-dns.8.in
rename to man/network-dns-server.8.in
index 12f975e69225bd9383fee525345997aa9c87ab35..5b2066f79b527c1d281022a3975e02f4667a22cc 100644 (file)
@@ -1,23 +1,23 @@
-.TH network-dns 8 "22 Jun 2012" "@VERSION@" "network man page"
+.TH network-dns-server 8 "22 Jun 2012" "@VERSION@" "network man page"
 
 .SH NAME
-network-dns \- Network Configuration Control Program
+network-dns-server \- Network Configuration Control Program
 
 .SH SYNOPSIS
-\fBnetwork [OPTIONS] dns [add|remove] <server> [<priority>]\fR
+\fBnetwork [OPTIONS] dns-server [add|remove] <server> [<priority>]\fR
 .P
-\fBnetwork [OPTIONS] dns list\fR
+\fBnetwork [OPTIONS] dns-server list\fR
 .P
-\fBnetwork [OPTIONS] dns update\fR
+\fBnetwork [OPTIONS] dns-server update\fR
 
 .SH DESCRIPTION
-With help of the \fBdns\fR subcommand, you will be able to configure the
+With help of the \fBdns-server\fR subcommand, you will be able to configure the
 local DNS configuration. DNS is short for \fBDomain Name System\fR.
 .PP
 You may add and remove DNS servers as well as view the settings.
 
 .SH OPTIONS
-The \fBnetwork dns\fR command offers various commands:
+The \fBnetwork dns-server\fR command offers various commands:
 
 \fBadd <server> [<priority>]\fR
 .RS 4
index e013a27692428c3ef89bedb0f32b7a4c0fc539a1..dd91b7a2abd493a15a7edf98eb0fcda94bce3135 100644 (file)
@@ -105,9 +105,9 @@ after the next reboot.
 .RE
 .PP
 
-\fBdns ...\fR
+\fBdns-server ...\fR
 .RS 4
-The \fBdns\fR command will help you configuring the local DNS servers.
+The \fBdns-server\fR command will help you configuring the local DNS servers.
 .RE
 .PP
 
@@ -128,7 +128,7 @@ Please report all bugs to the official bugtracker at http://bugs.ipfire.org/.
 .SH SEE ALSO
 network-config(8),
 network-device(8),
-network-dns(8),
+network-dns-server(8),
 network-port(8),
 network-zone(8)
 
diff --git a/network b/network
index 00a4f76d747a25fd871a24df1268b51e40cf599a..7822900517c24548232d877977eb3fa71ac9f3fd 100755 (executable)
--- a/network
+++ b/network
@@ -1036,16 +1036,16 @@ function cli_help() {
        hook_exec ${type} ${what} help
 }
 
-function cli_dns() {
+function cli_dns_server() {
        if cli_help_requested $@; then
-               cli_show_man network-dns
+               cli_show_man network-dns-server
                exit ${EXIT_OK}
        fi
 
        # Get the command.
        local cmd=${1}; shift
        if [ -z "${cmd}" ]; then
-               cli_show_man network-dns
+               cli_show_man network-dns-server
                exit ${EXIT_ERROR}
        fi
 
@@ -1097,7 +1097,7 @@ case "${action}" in
                init_run
                ;;
 
-       config|hostname|port|device|zone|start|stop|restart|status|reset|dns|route)
+       config|hostname|port|device|zone|start|stop|restart|status|reset|route)
                cli_${action} $@
                ;;
 
@@ -1106,6 +1106,11 @@ case "${action}" in
                cli_dhcpd ${action/dhcp/ip} $@
                ;;
 
+       # DNS server configuration.
+       dns-server)
+               cli_dns_server $@
+               ;;
+
        ""|help|--help|-h)
                cli_help $@
                ;;