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:17] – [DIY RFC2136 dyndns with bind] Pascal Suterdiy_rfc2136_dyndns_with_bind [25.06.2021 08:18] Pascal Suter
Line 41: Line 41:
  };   }; 
 }; };
-</code bash add_new_host.sh> **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>+  * 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>
 #!/bin/bash #!/bin/bash
 if [ -z "$1" -o "$1" == " " ]; then if [ -z "$1" -o "$1" == " " ]; then
Line 80: Line 80:
   * now use the script to add your first hostname. <code>./add_new_host myhost</code>if you did everything correctly (and if i described it all correctly) your client should now be able to update it's own dns entry with the key you received back from the script.    * now use the script to add your first hostname. <code>./add_new_host myhost</code>if you did everything correctly (and if i described it all correctly) your client should now be able to update it's own dns entry with the key you received back from the script. 
 ===== script to remove hosts ===== ===== script to remove hosts =====
-optionally you can also create a little script to remove hosts just as easily. create a file called remove_hosts.sh with the following contents<code>+optionally you can also create a little script to remove hosts just as easily. create a file called remove_hosts.sh with the following contents<code bash remove_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