.PP
.SH SEE ALSO
-network(8), network-dns(8)
+network(8), network-dns-server(8)
.SH AUTHOR
Michael Tremer (michael.tremer@ipfire.org)
-.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
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
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} $@
;;
cli_dhcpd ${action/dhcp/ip} $@
;;
+ # DNS server configuration.
+ dns-server)
+ cli_dns_server $@
+ ;;
+
""|help|--help|-h)
cli_help $@
;;