Environment Variables

Using environment variables, you can configure some aspects of DTN2. The following table summarizes these variables.

Variable Component Syntax Description Default
DTNAPI_ADDR dtnd and all DTN API clients (dtncp, dtnping, etc) An IP address (not a hostname) This is the address that dtnd listens on for requests from DTN API clients, and the address that DTN API clients send requests to. 0.0.0.0
DTNAPI_PORT dtnd and all DTN API clients (dtncp, dtnping, etc) An IP port number This is the port that dtnd listens on for requests from DTN API clients, and the port that DTN API clients send requests to. 5010
HOME dtnd A directory name The logging system looks for the .dtndebug file in this directory. Set by operating system.
TMP dtnd A directory name The directory where bundles will be copied when an application asks for a bundle to be delivered as a file. If not set, a default of /tmp is used. Set by operating system. (Unix)
TEMP dtnd A directory name Same as TMP. TEMP is used only if TMP is not set. Set by operating system (Windows).