https://wiki.archlinux.org/api.php?action=feedcontributions&user=MrThieff&feedformat=atomArchWiki - User contributions [en]2024-03-28T16:47:19ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=Dynamic_DNS&diff=282631Dynamic DNS2013-11-13T12:15:29Z<p>MrThieff: </p>
<hr />
<div>[[Category:Domain Name System]]<br />
{{Article summary start|Summary}}<br />
{{Article summary text|Updating Dynamic DNS}}<br />
{{Article summary end}}<br />
<br />
'''Dynamic DNS''' or '''DDNS''' is a method of updating, in real time, a [[DNS]] to point to a changing IP address on the Internet. This is used to provide a persistent domain name for a resource that may change location on the network.<br />
<br />
==Router==<br />
Many routers have built in DDNS Services but can be limited in the services which they update. If the Router supports a the service, or you are willing to pay or donate for a service, you should do this, it is faster and more reliable.<br />
In that case, there is no need to use a softwareside solution.<br />
<br />
==Software Dynamic DNS==<br />
=== Afraid ===<br />
[http://FreeDNS.afraid.org FreeDNS.afraid.org] is a free Service which is easy and uncomplicated to set up. <br />
<br />
There are several options to enable automatic DDNS updating for this provider:<br />
<br />
==== afraid-dyndns ==== <br />
The package {{AUR|afraid-dyndns-uv}} is available in the [[AUR]].<br />
<br />
==== ddclient ====<br />
<br />
The package {{Pkg|ddclient}} is available in the [[community]] repository. It includes [[systemd]] support. Unfortunately, it seems to generate broken update URLs for freedns: http://ddclient.tisnix.be/ticket/58<br />
<br />
An example config file looks like this:<br />
<br />
daemon=600<br />
cache=/tmp/ddclient.cache<br />
syslog=yes<br />
<br />
use=web, web=checkip.dyndns.com/, web-skip='IP Address'<br />
<br />
ssl=yes<br />
<br />
## Configuration variables applicable to the 'freedns' protocol are:<br />
# protocol=freedns ##<br />
# server=fqdn.of.service ## defaults to freedns.afraid.org<br />
# login=service-login ## login name and password registered with the service<br />
# password=service-password ##<br />
# fully.qualified.host ## the host registered with the service.<br />
#<br />
protocol=freedns, \<br />
login=my-freedns.afraid.org-login, \<br />
password=my-freedns.afraid.org-password \<br />
myhost.afraid.org<br />
<br />
To enable the [[systemd]] service:<br />
<br />
systemctl enable ddclient<br />
<br />
==== cron ====<br />
<br />
Another option is to:<br />
* goto [http://freedns.afraid.org/dynamic/index.php Dynamic DNS] page on freedns.afraid.org<br />
* add A record and select your prefered domain name<br />
* copy link under '''Direct URL''', it will be something like "<nowiki>http://freedns.afraid.org/dynamic/update.php?ZRRJZ...................bzo4Njc1M4DA</nowiki>"<br />
* use '''crontab -e''' to enter new schedulled command: <br />
*/10 * * * * curl -ks http://freedns.afraid.org/dynamic/update.php?ZRRJZ...................bzo4Njc1M4DA > /dev/null<br />
<br />
==== Netctl ====<br />
To add the record of your IP to freedns.afraid.org along with a network connection through the use with [[Netctl]]. You can append the following line to your netctl profile.<br />
{{bc|<nowiki>ExecUpPost='curl -ks http://freedns.afraid.org/dynamic/update.php?ZRRJZ...................bzo4Njc1M4DA'</nowiki>}}<br />
<br />
=== DynDNS ===<br />
<br />
[http://dyn.com/dns/ DynDNS] is another Dynamic DNS service. <br />
<br />
DynDNS can be updated with [http://dyn.com/support/clients/linux/ddclient/ ddclient] or the {{AUR|dyndns}} package in the [[AUR]].<br />
<br />
=== DNSdynamic ===<br />
<br />
[http://www.dnsdynamic.org/ DNSdynamic] "will always be absolutely free" and works [https://www.dnsdynamic.org/api.php with ddclient]<br />
<br />
=== System-NS ===<br />
<br />
[http://system-ns.com/ System-NS] free DNS service.<br />
<br />
==== cron ====<br />
<br />
Make directory and script file in it.<br />
$ cd ~<br />
$ mkdir systemns<br />
$ cd systemns<br />
$ vi systemns.sh<br />
Put this text in systemns.sh. You should change domain and token parameters.<br />
#!/bin/bash<br />
wget -q -O- --post-data "type=dynamic&domain=mydomain.system-ns.net&command=set&token=880078764367979fe765c0fa3f4efff1" http://system-ns.com/api | grep -v '"code":0' | awk '{print d, $0}' "d=$(date)" >> ~/systemns/systemns.log<br />
Make the systemns.sh file executable.<br />
$ chmod +x systemns.sh<br />
Open crontab.<br />
$ crontab -e<br />
Put this text in the crontab (run every 5 minutes)<br />
*/5 * * * * ~/systemns/systemns.sh</div>MrThieffhttps://wiki.archlinux.org/index.php?title=Dynamic_DNS&diff=282630Dynamic DNS2013-11-13T12:14:54Z<p>MrThieff: </p>
<hr />
<div>[[Category:Domain Name System]]<br />
{{Article summary start|Summary}}<br />
{{Article summary text|Updating Dynamic DNS}}<br />
{{Article summary end}}<br />
<br />
'''Dynamic DNS''' or '''DDNS''' is a method of updating, in real time, a [[DNS]] to point to a changing IP address on the Internet. This is used to provide a persistent domain name for a resource that may change location on the network.<br />
<br />
==Router==<br />
Many routers have built in DDNS Services but can be limited in the services which they update. If the Router supports a the service, or you are willing to pay or donate for a service, you should do this, it is faster and more reliable.<br />
In that case, there is no need to use a softwareside solution.<br />
<br />
==Software Dynamic DNS==<br />
=== Afraid ===<br />
[http://FreeDNS.afraid.org FreeDNS.afraid.org] is a free Service which is easy and uncomplicated to set up. <br />
<br />
There are several options to enable automatic DDNS updating for this provider:<br />
<br />
==== afraid-dyndns ==== <br />
The package {{AUR|afraid-dyndns-uv}} is available in the [[AUR]].<br />
<br />
==== ddclient ====<br />
<br />
The package {{Pkg|ddclient}} is available in the [[community]] repository. It includes [[systemd]] support. Unfortunately, it seems to generate broken update URLs for freedns: http://ddclient.tisnix.be/ticket/58<br />
<br />
An example config file looks like this:<br />
<br />
daemon=600<br />
cache=/tmp/ddclient.cache<br />
syslog=yes<br />
<br />
use=web, web=checkip.dyndns.com/, web-skip='IP Address'<br />
<br />
ssl=yes<br />
<br />
## Configuration variables applicable to the 'freedns' protocol are:<br />
# protocol=freedns ##<br />
# server=fqdn.of.service ## defaults to freedns.afraid.org<br />
# login=service-login ## login name and password registered with the service<br />
# password=service-password ##<br />
# fully.qualified.host ## the host registered with the service.<br />
#<br />
protocol=freedns, \<br />
login=my-freedns.afraid.org-login, \<br />
password=my-freedns.afraid.org-password \<br />
myhost.afraid.org<br />
<br />
To enable the [[systemd]] service:<br />
<br />
systemctl enable ddclient<br />
<br />
==== cron ====<br />
<br />
Another option is to:<br />
* goto [http://freedns.afraid.org/dynamic/index.php Dynamic DNS] page on freedns.afraid.org<br />
* add A record and select your prefered domain name<br />
* copy link under '''Direct URL''', it will be something like "<nowiki>http://freedns.afraid.org/dynamic/update.php?ZRRJZ...................bzo4Njc1M4DA</nowiki>"<br />
* use '''crontab -e''' to enter new schedulled command: <br />
*/10 * * * * curl -ks http://freedns.afraid.org/dynamic/update.php?ZRRJZ...................bzo4Njc1M4DA > /dev/null<br />
<br />
==== Netctl ====<br />
To add the record of your IP to freedns.afraid.org along with a network connection through the use with [[Netctl]]. You can append the following line to your netctl profile.<br />
{{bc|<nowiki>ExecUpPost='curl -ks http://freedns.afraid.org/dynamic/update.php?ZRRJZ...................bzo4Njc1M4DA'</nowiki>}}<br />
<br />
=== DynDNS ===<br />
<br />
[http://dyn.com/dns/ DynDNS] is another Dynamic DNS service. <br />
<br />
DynDNS can be updated with [http://dyn.com/support/clients/linux/ddclient/ ddclient] or the {{AUR|dyndns}} package in the [[AUR]].<br />
<br />
=== DNSdynamic ===<br />
<br />
[http://www.dnsdynamic.org/ DNSdynamic] "will always be absolutely free" and works [https://www.dnsdynamic.org/api.php with ddclient]<br />
<br />
=== System-NS ===<br />
<br />
[http://system-ns.com/ System-NS] free DNS service.<br />
<br />
==== cron ====<br />
<br />
Make directory and script file in it.<br />
$ cd ~<br />
$ mkdir systemns<br />
$ cd systemns<br />
$ vi systemns.sh<br />
Put this text in systemns.sh. You should change domain and token parameters.<br />
#!/bin/bash<br />
wget -q -O- --post-data "type=dynamic&domain=mydomain.system-ns.net&command=set&token=880078764367979fe765c0fa3f4efff1" http://system-ns.com/api | grep -v '"code":0' | awk '{print d, $0}' "d=$(date)" >> ~/systemns/systemns.log<br />
Make the systemns.sh file executable.<br />
$ chmod +x systemns.sh<br />
Open crontab.<br />
$ crontab -e<br />
Put this text in the crontab (run every 5 minutes)<br />
*/5 * * * * ~/systemns/systemns.sh<br />
<br />
==== ddclient ====<br />
<br />
in the near future</div>MrThieff