-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
126 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
{ | ||
// ------------------ DHCP-DDNS --------------------- | ||
"DhcpDdns": | ||
{ | ||
|
||
// -------------- Global Parameters ---------------- | ||
// D2 will listen for update requests for Kea DHCP servers at 127.0.0.1 | ||
// on port 53001. Maximum time to we will wait for a DNS server to | ||
// respond to us is 1000 ms. | ||
|
||
"ip-address": "127.0.0.1", | ||
"port": 53001, | ||
"dns-server-timeout" : 1000, | ||
|
||
// One extra feature that requires some explanation is | ||
// user-context. This is a structure that you can define at global scope, | ||
// in ddns domain, dns server, tsig key and others. It is parsed by | ||
// Kea, but not used directly. It is intended to keep anything you | ||
// may want to put there - comments, extra designations, floor or | ||
// department names etc. | ||
// A comment entry is translated into a user-context with a "comment" | ||
// property so you can include comments inside the configuration itself. | ||
|
||
"user-context": { "version": 1 }, | ||
|
||
// ----------------- Control Socket ----------------- | ||
|
||
"control-socket": { | ||
"socket-type": "unix", | ||
"socket-name": "/run/kea-ddns-ctrl-socket" | ||
}, | ||
|
||
"forward-ddns": | ||
{ | ||
"ddns-domains": | ||
[ | ||
{ | ||
"comment": "forward domain", | ||
"name": "lan.geco.ethz.ch.", | ||
"key-name": ".key", | ||
"dns-servers": | ||
[ | ||
{ | ||
"ip-address": "10.233.242.201" | ||
} | ||
] | ||
}, | ||
] | ||
}, | ||
|
||
"reverse-ddns": | ||
{ | ||
"ddns-domains": | ||
[ | ||
{ | ||
"comment": "v4 reverse domain", | ||
"name": "233.10.in-addr.arpa.", | ||
"key-name": "key", | ||
"dns-servers": | ||
[ | ||
{ | ||
"ip-address": "10.233.242.201" | ||
} | ||
] | ||
}, | ||
{ | ||
"comment": "v6 reverse domain", | ||
"name": "0.7.c.4.c.e.0.1.c.7.6.0.1.0.0.2.ip6.arpa.", | ||
"key-name": "key", | ||
"dns-servers": | ||
[ | ||
{ | ||
"ip-address": "10.233.242.201" | ||
} | ||
] | ||
}, | ||
] | ||
}, | ||
|
||
// ------------------ TSIG keys --------------------- | ||
// Each key has a name, an algorithm (HMAC-MD5, HMAC-SHA1, HMAC-SHA224...) | ||
// and a base-64 encoded shared secret. | ||
"tsig-keys": | ||
[ | ||
{ | ||
"name": "key", | ||
"algorithm": "HMAC-SHA256", | ||
"secret": "$DDNS_KEY" | ||
} | ||
], | ||
|
||
// The following configures logging. It assumes that messages with at least | ||
// informational level (info, warn, error and fatal) should be logged to stdout. | ||
// It also specifies a custom log pattern. | ||
"loggers": [ | ||
{ | ||
"name": "kea-dhcp-ddns", | ||
"output-options": [ | ||
{ | ||
"output": "stdout", | ||
// Several additional parameters are possible in addition | ||
// to the typical output. Flush determines whether logger | ||
// flushes output to a file. Maxsize determines maximum | ||
// filesize before the file is rotated. maxver | ||
// specifies the maximum number of rotated files being | ||
// kept. | ||
"flush": true, | ||
"maxsize": 204800, | ||
"maxver": 4, | ||
"pattern": "%d [%c/%i] %m\n" | ||
} | ||
], | ||
"debuglevel": 0, | ||
"severity": "INFO" | ||
} | ||
] | ||
} | ||
|
||
} |