digitalFAQ.com Forum

digitalFAQ.com Forum (https://www.digitalfaq.com/forum/)
-   Web Hosting (https://www.digitalfaq.com/forum/web-hosting/)
-   -   Sample nsd.conf for NSD3 (Linux DNS) VPS configuration (https://www.digitalfaq.com/forum/web-hosting/3259-sample-nsd-conf.html)

kpmedia 07-06-2011 04:16 AM

Sample nsd.conf for NSD3 (Linux DNS) VPS configuration
 
Here's a minimalist entry for nsd.conf for low-end boxes. (Known to work on VPS with only 192MB RAM.)

Added instructions
~ Replace xx.xx.xx.xx with your server IP.
~ Change "secret" entry to unique random gibberish.

PHP Code:

# nsd.conf -- the NSD(8) configuration file, nsd.conf(5).
# Copyright (c) 2001-2006, NLnet Labs. All rights reserved.
# options for the nsd server
server:
ip-addressxx.xx.xx.xx
hide
-versionyes
ip4
-onlyyes

# the database to use
database"/etc/nsd3/nsd.db"
identity"Name (NSD) Server "

# log messages to file. Default to stderr and syslog.
logfile"/var/log/nsd.log"

# Number of NSD servers to fork.
server-count1

# Maximum number of concurrent TCP connections per server.
# This option should have a value below 1000.
tcp-count10

# Maximum number of queries served on a single TCP connection.
# By default 0, which means no maximum.
tcp-query-count20

# File to store pid for nsd in.
pidfile"/var/run/nsd3/nsd.pid"

# chroot: "/etc/nsd3"
# After binding socket, drop user privileges.
# can be a username, id or id.gid.
usernamensd

# The directory for zonefile: files.
zonesdir"/etc/nsd3"

# key for zone 1
key:
namemskey
algorithm
hmac-md5
secret
"dfkwehdgkshetlrhorhzvbyzd"

# Sample zone 1 (forward)
zone:
name"domainname.com"
zonefile"domainname.com.forward"
outgoing-interface: xx.xx.xx.xx 

Thanks to vpswing of WHT for his assistance. [:)]


All times are GMT -5. The time now is 03:04 AM

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.