forked from stecklars/dynamic-dns-netcup-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.dist.php
26 lines (20 loc) · 1.25 KB
/
config.dist.php
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
<?php
// Enter your netcup customer number here
define('CUSTOMERNR', '12345');
//Enter your API-Key and -Password here - you can generate them in your CCP at https://ccp.netcup.net
define('APIKEY', 'abcdefghijklmnopqrstuvwxyz');
define('APIPASSWORD', 'abcdefghijklmnopqrstuvwxyz');
// Enter Domain which should be used for dynamic DNS
define('DOMAIN', 'mydomain.com');
//Enter subdomain to be used for dynamic DNS, alternatively '@' for domain root or '*' for wildcard. If the record doesn't exist, the script will create it.
define('HOST', 'server');
//If set to true, the script will check for your public IPv4 address and add it as an A-Record / change an existing A-Record for the host.
//Activate this only if you have IPv4 connectivity, or you *WILL* get errors.
define('USE_IPV4', true);
//If set to true, the script will check for your public IPv6 address too and add it as an AAAA-Record / change an existing AAAA-Record for the host.
//Activate this only if you have IPv6 connectivity, or you *WILL* get errors.
define('USE_IPV6', false);
//If set to true, this will change TTL to 300 seconds on every run if necessary.
define('CHANGE_TTL', true);
// Use netcup DNS REST-API
define('APIURL', 'https://ccp.netcup.net/run/webservice/servers/endpoint.php?JSON');