Added sample configurations.
This commit is contained in:
parent
bdc279073c
commit
f6f86f2e69
@ -1,56 +0,0 @@
|
|||||||
# nsupdate.config
|
|
||||||
# The nsupdate.sh is processing all .config files by looping.
|
|
||||||
# If you want to update an IPv4 and an IPv6 record you need two config files.
|
|
||||||
|
|
||||||
# Login credentials for the inwx admin interface
|
|
||||||
INWX_USER="USERNAME"
|
|
||||||
INWX_PASS="PASSWORD"
|
|
||||||
|
|
||||||
# The domain that you want to update AND its main/zone domain
|
|
||||||
# The MAIN_DOMAIN is needed for the API-Request to get the record ID
|
|
||||||
MAIN_DOMAIN="example.com"
|
|
||||||
DOMAIN="home.example.com"
|
|
||||||
# If it is the same domain:
|
|
||||||
#DOMAIN="example.com"
|
|
||||||
|
|
||||||
# Set the record type to either A, AAAA or MX
|
|
||||||
# For MX you would normaly just set a domain and not an ip, so this is just a option.
|
|
||||||
TYPE="A"
|
|
||||||
|
|
||||||
# From which site should we get your WAN IP?
|
|
||||||
# Note that for IPv4 or IPv6 the IP_CHECK_SITE should work
|
|
||||||
# e.g. for IPv4 use api.ipify.org and for IPv6 use api6.ipify.org
|
|
||||||
IP_CHECK_SITE="https://api.ipify.org/"
|
|
||||||
|
|
||||||
# TTL: Time to Live
|
|
||||||
# default TTL setting by inwx is 3600 (1 hour)
|
|
||||||
# minimum TTL allowed by inwx is 300 (5 minutes) for regular nameserver record updates
|
|
||||||
# In this script the defaul setting is 300.
|
|
||||||
#TTL=300
|
|
||||||
|
|
||||||
# Log file name.
|
|
||||||
LOG="$0.log"
|
|
||||||
|
|
||||||
# Suppress all messages and deactivates logging.
|
|
||||||
# default is SILENT="NO"
|
|
||||||
#SILENT="YES"
|
|
||||||
|
|
||||||
# Use drill instead of nslookup for hostname lookup.
|
|
||||||
#USE_DRILL="YES"
|
|
||||||
|
|
||||||
# The domain-Record-ID from the inwx interface.
|
|
||||||
# If the command-line-tool "xmllint" is working you dont need to set this option.
|
|
||||||
# Note: You can get the specific domain record ID while editing the given nameserver entry by
|
|
||||||
# inspecting the target URL of the save button.
|
|
||||||
#INWX_DOMAIN_ID="123456789"
|
|
||||||
|
|
||||||
# Provide a command to get the Ip instead of using Curl
|
|
||||||
#IPCOMMAND=""
|
|
||||||
|
|
||||||
# Use IPv6 connection.
|
|
||||||
# deprecated option for backward compatibility, use TYPE instead
|
|
||||||
#IPV6="NO"
|
|
||||||
|
|
||||||
# Update an MX record.
|
|
||||||
# deprecated option for backward compatibility, use TYPE instead
|
|
||||||
#MX="NO"
|
|
26
nsupdate/conf.d/sub.example.com_AAAA.conf.dist
Normal file
26
nsupdate/conf.d/sub.example.com_AAAA.conf.dist
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
## Example DNS record config file
|
||||||
|
|
||||||
|
# nsupdate.sh is processing all .conf files in a loop.
|
||||||
|
# If you want to update an IPv4 and an IPv6 record you need two config files.
|
||||||
|
|
||||||
|
# The domain that you want to update AND its main/zone domain
|
||||||
|
# The MAIN_DOMAIN is needed for the API-Request to get the record ID
|
||||||
|
MAIN_DOMAIN="example.com"
|
||||||
|
DOMAIN="sub.example.com"
|
||||||
|
|
||||||
|
# The next options must only be set if they differ from the global config in nsupdate.conf
|
||||||
|
|
||||||
|
# Login credentials for the INWX API
|
||||||
|
# These can be left undefined if you specified them globally in the nsupdate.conf
|
||||||
|
#INWX_USER="YOUR_INWX_USERNAME"
|
||||||
|
#INWX_PASSWORD="YOUR_INWX_PASSWORD"
|
||||||
|
|
||||||
|
# Set the record type to either A, AAAA
|
||||||
|
# If undefined, A is used globally
|
||||||
|
RECORD_TYPE="AAAA"
|
||||||
|
|
||||||
|
# TTL: Time to Live
|
||||||
|
# default TTL setting by INWX is 3600 (1 hour)
|
||||||
|
# minimum TTL allowed by INWX is 300 (5 minutes) for regular nameserver record updates
|
||||||
|
# If unspecified, nsupdate uses a TTL of 300
|
||||||
|
#RECORD_TTL="300"
|
74
nsupdate/nsupdate.conf.dist
Normal file
74
nsupdate/nsupdate.conf.dist
Normal file
@ -0,0 +1,74 @@
|
|||||||
|
|
||||||
|
# nsupdate.conf
|
||||||
|
#
|
||||||
|
# This file holds the global configuration for nsupdate.
|
||||||
|
# It will be found in the directory of the nsupdate script or /usr/local/etc/nsupdate.
|
||||||
|
# All options have sensible defaults and can be left undefined, except of your INWX credentials.
|
||||||
|
|
||||||
|
## Backwards compatibilty
|
||||||
|
## If you've used nsupdate before, uncomment the following lines to use your old configurations
|
||||||
|
#NSUPDATE_CONFD_DIR="./nsupdate.d"
|
||||||
|
#NSUPDATE_LOG_DIR="."
|
||||||
|
#NSUPDATE_LOG_FILE="nsupdate.sh.log"
|
||||||
|
#NSUPDATE_CONF_EXTENSION=".config"
|
||||||
|
#NSUPDATE_TMP_DIR="."
|
||||||
|
|
||||||
|
# NSUPDATE_INWX_USER
|
||||||
|
# INWX API user that's globally used; can be overwritten in DNS record configuration
|
||||||
|
#NSUPDATE_INWX_USER="YOUR_INWX_USER_NAME"
|
||||||
|
|
||||||
|
# NSUPDATE_INWX_PASSWORD
|
||||||
|
# INWX API password that's globally used; can be overwritten in DNS record configuration
|
||||||
|
#NSUPDATE_INWX_PASSWORD="YOUR_INWX_USER_PASSWORD"
|
||||||
|
|
||||||
|
# NSUPDATE_RECORD_TYPE
|
||||||
|
# DNS record type that's used when nothing is defined; A or AAAA; default: A
|
||||||
|
#NSUPDATE_RECORD_TYPE="A"
|
||||||
|
|
||||||
|
# NSUPDATE_RECORD_TTL
|
||||||
|
# DNS record TTL that's used when nothing is defined; minimum: 300; default: 300
|
||||||
|
#NSUPDATE_RECORD_TTL="300"
|
||||||
|
|
||||||
|
# VERBOSE
|
||||||
|
# Print more output; true or false; default: false
|
||||||
|
#VERBOSE="false"
|
||||||
|
|
||||||
|
# DEBUG
|
||||||
|
# Print debugging messages; true or false; default: false
|
||||||
|
#DEBUG="false"
|
||||||
|
|
||||||
|
# BASEDIR
|
||||||
|
# Base path for configuration files on the system; default: /usr/local/etc
|
||||||
|
#BASEDIR="/usr/local/etc"
|
||||||
|
|
||||||
|
# NSUPDATE_CONF_DIR
|
||||||
|
# Directory path of the nsupdate configuration files in base path for configuration files on the system; default: nsupdate
|
||||||
|
#NSUPDATE_CONF_DIR="$BASEDIR/nsupdate"
|
||||||
|
|
||||||
|
# NSUPDATE_CONFD_DIR
|
||||||
|
# Directory name for the DNS config files; dfault: $NSUPDATE_CONF_DIR/conf.d
|
||||||
|
#NSUPDATE_CONFD_DIR="$NSUPDATE_CONF_DIR/conf.d"
|
||||||
|
|
||||||
|
# LOG_DATE_FORMAT
|
||||||
|
# Date format for log files; default: %Y-%m-%d %H:%M:%S
|
||||||
|
#LOG_DATE_FORMAT="%Y-%m-%d %H:%M:%S"
|
||||||
|
|
||||||
|
# NSUPDATE_LOG_DIR
|
||||||
|
# Directory path for the log file; default: /var/log
|
||||||
|
#NSUPDATE_LOG_DIR="/var/log/nsupdate"
|
||||||
|
|
||||||
|
# NSUPDATE_LOG_FILE
|
||||||
|
# Name of the log file; default: nsupdate.log
|
||||||
|
#NSUPDATE_LOG_FILE="nsupdate.log"
|
||||||
|
|
||||||
|
# NSUPDATE_TMP_DIR
|
||||||
|
# Directory path for temporary files; default: /tmp
|
||||||
|
#NSUPDATE_TMP_DIR="/tmp"
|
||||||
|
|
||||||
|
# NSUPDATE_CONF_EXTENSION
|
||||||
|
# File name extension for configuration files; default: .conf
|
||||||
|
#NSUPDATE_CONF_EXTENSION=".conf"
|
||||||
|
|
||||||
|
# NSUPDATE_IP_CHECK_SITE
|
||||||
|
# Website to retrieve the wan IP; should be accissible by IPv4 and IPv6; default: https://api64.ipify.org
|
||||||
|
#NSUPDATE_IP_CHECK_SITE="https://api64.ipify.org"
|
Loading…
x
Reference in New Issue
Block a user