Restarting a Name Server with the Same Arguments

5.10.1 Problem

You want to restart named with ndc, but keep the same command-line arguments.

5.10.2 Solution

Specify the command-line arguments after the restart command. For example:

# ndc restart -c /tmp/named.conf

Or, if you're not sure what the command-line arguments were, use:

# ndc exec

The exec command tells named to exec( ) a new copy of itself, including any command-line argument it was started with.

5.10.3 Discussion

If you run ndc from the command line and named is linked against a faulty copy of getopt( ), you may need to specify "- -" as the first argument to restart to make sure the options are passed to named correctly.

BIND 9 name servers don't support restart and exec.

5.10.4 See Also

Section 3.2, for setting up ndc to work with a name server; Section 5.5, for a situation in which you'd restart a name server (in this case, to clear the cache); and "Controlling a Name Server" in Chapter 7 of DNS and BIND.

Getting Started

Zone Data

BIND Name Server Configuration

Electronic Mail

BIND Name Server Operations

Delegation and Registration


Interoperability and Upgrading

Resolvers and Programming

Logging and Troubleshooting


DNS & BIND Cookbook
DNS & BIND Cookbook
ISBN: 0596004109
EAN: 2147483647
Year: 2005
Pages: 220
Authors: Cricket Liu © 2008-2020.
If you may any questions please contact us: