about summary refs log tree commit diff stats
path: root/linux/network.html
diff options
context:
space:
mode:
Diffstat (limited to 'linux/network.html')
-rw-r--r--linux/network.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/linux/network.html b/linux/network.html
index a0e542e..8c624ab 100644
--- a/linux/network.html
+++ b/linux/network.html
@@ -463,6 +463,26 @@
         nmcli> save persistent
         </pre>
 
+        <h2 id="domain">Domain</h2>
+
+        <p>To configure a sub-domain from
+        <a href="http://freedns.afraid.org">afraid.org</a>,
+        <a href="https://freedns.afraid.org/dynamic/v2/">generate cron job</a>
+        to update ip every 5 minutes, check
+        <a href="https://freedns.afraid.org/dynamic/v2/tips/">about dynamic interface</a>.
+        To run as system cron job add as root and remove
+        path line from example;</p>
+
+        <pre>
+        # crontab -e
+        </pre>
+
+        <p>Replace KEY and domain_name with correct one;</p>
+
+        <pre>
+        4,9,14,19,24,29,34,39,44,49,54,59 * * * * sleep 22 ; wget --no-check-certificate -O - https://freedns.afraid.org/dynamic/update.php?[KEY]= >> /var/log/freedns_domain_name.log 2>&1 &
+        </pre>
+
 
         <a href="index.html">GNU/Linux Index</a>
         <p>