forked from opennetadmin/build_bind
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_bind.conf.sample
45 lines (38 loc) · 2.12 KB
/
build_bind.conf.sample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
# this will default to placing data files in /opt/ona/etc/bind, you can update the following for your system as needed
# for things like chroot jails etc
ONA_PATH="${ONABASE}/etc/bind"
# Define the FQDN of the local server. That it is the same as the hostname in ONA
# It is recommended to hard code the host name rather than using "$(hostname -f)"
# since it relies on a system with a proper hostname and domain configuration
SRV_FQDN="ns01.example.com"
# Path to the dcm.pl command. Also include any options that might be needed
DCM_PATH="${ONABASE}/bin/dcm.pl"
# Define path for curl binary requires if pulling templates from remote web server
CURL_PATH="/usr/bin/curl"
# Specify a URL to a directory located on a web server used to store domain based
# footers. Each file contains additional DNS records to be appended to respective
# local DNS zones generated from ONA.
#
# Using this method footers don't have to be manually synced between
# name servers. The remote path can be located on the web server that also
# provided for the OpenNetAdmin instance (preferred way).
#
# It is highly recommended to use HTTPS (SSL/TLS) for transport security but
# at least ip address based access control on the target server
# e.g. using a htaccess file. When using http basic authentication
# you can embed the user credentials within the URI in the following way:
#
# e.g. FOOTER_URL="https://USERNAME:PASSWORD@ipam.mydomain.tld/zone_footers"
#
FOOTER_URL="https://USER:PASSWORD@ona.domain.tld/zone_footers" # no trailing slash
# The command used to check the configuration syntax prior to restarting the daemon
CHECKCOMMAND="named-checkconf -z"
# The command used to restart bind
# two options would be standard init.d or something like RNDC if it is configured
# in your environment
SYSTEMINIT="/etc/init.d/named reload"
# Email settings for config_archive to send status information to (diffs etc)
MAIL_SERVER=mail.example.com # name or IP of the mail server to use
MAIL_FROM=ona-build_dhcpd@${SRV_FQDN} # email address to use in the from field
MAIL_TO=hostmaster@example.com # email address(es) to send our notifications to