diy_rfc2136_dyndns_with_bind

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revisionBoth sides next revision
diy_rfc2136_dyndns_with_bind [25.06.2021 08:18] – [script to remove hosts] Pascal Suterdiy_rfc2136_dyndns_with_bind [25.06.2021 09:10] Pascal Suter
Line 43: Line 43:
 </code> **note** keep the //add_keys_here// comment exactly as it is, this is the marker for our script so it knows where to add new keys </code> **note** keep the //add_keys_here// comment exactly as it is, this is the marker for our script so it knows where to add new keys
   * edit your main named.conf file, usually in /etc/bind/named.conf and add an include line at the end of your zone definitions like so: <code>include "/etc/bind/dyn/named.conf";</code>   * edit your main named.conf file, usually in /etc/bind/named.conf and add an include line at the end of your zone definitions like so: <code>include "/etc/bind/dyn/named.conf";</code>
-  * create the "add_new_host.sh" script that will add new hosts to our setup. here are the contents of the script: <code bash add_new_host.sh>+  * create the "add_new_host.sh" script that will add new hosts to our setup. \\ 
 +**Note**: this script works with older versions of bind9, i.e. versions 9.14 and older i think. in version 9.16 the ''dnssec-keygen'' utility no longer produces tsig keys, so this script should be modified to use the ''tsig-keygen'' utility instead which is easier to use anyway. I just haven't had the time to do this and test it. I'll update this article as soon as i have to add the next dynamic dns host to my system ;) 
 + 
 +here are the contents of the script: <code bash add_new_host.sh>
 #!/bin/bash #!/bin/bash
 if [ -z "$1" -o "$1" == " " ]; then if [ -z "$1" -o "$1" == " " ]; then
  • diy_rfc2136_dyndns_with_bind.txt
  • Last modified: 25.06.2021 12:39
  • by Pascal Suter