Difference between revisions of "Sync dynamic IP with openDNS service via ddclient"
Views
Actions
Namespaces
Variants
Tools
imported>FadeMind |
imported>FadeMind |
||
Line 17: | Line 17: | ||
=== Port forwarding === | === Port forwarding === | ||
The ddclient daemon need opened incoming connections for ports '''53''', '''443''' and '''80'''. If you using a firewall software and router device You need in the settings to allow connections to these ports, otherwise ddclient daemon can't working propertly and sending IP to openDNS servers failed with errors. Check status ddclient daemon by command: | The ddclient daemon need opened incoming connections for ports '''53''', '''443''' and '''80'''. If you using a firewall software and router device You need in the settings to allow connections to these ports, otherwise ddclient daemon can't working propertly and sending IP to openDNS servers failed with errors. Check status ddclient daemon '''after setup and start service''' by command: | ||
sudo systemctl status ddclient -l | sudo systemctl status ddclient -l |
Revision as of 07:21, 6 June 2014
Setup openDNS in system settings
Set DNS addresses in resolv.conf file:
sudo gedit /etc/resolv.conf.head
with code:
nameserver 208.67.222.222
nameserver 208.67.220.220
Port forwarding
The ddclient daemon need opened incoming connections for ports 53, 443 and 80. If you using a firewall software and router device You need in the settings to allow connections to these ports, otherwise ddclient daemon can't working propertly and sending IP to openDNS servers failed with errors. Check status ddclient daemon after setup and start service by command:
sudo systemctl status ddclient -l
Looking for similar warnings:
ddclient[8999]: WARNING: cannot connect to myip.dnsomatic.com:80 socket: IO::Socket::INET: Bad hostname 'myip.dnsomatic.com'
If port forwarding is propertly setup, these warnings will be not showed and this mean all is fine.
Setup openDNS in ddclient
#1 Install ddclient:
sudo pacman -S ddclient
#2 Create backup a ddclient.conf file:
sudo cp /etc/ddclient/ddclient.conf /etc/ddclient/ddclient.conf.bak
#3 Open ddclient.conf file in text editor.
sudo gedit /etc/ddclient/ddclient.conf
#4 Delete current content, paste in:
daemon=300
syslog=yes
mail=root
mail-failure=root
pid=/var/run/ddclient.pid
ssl=yes
use=web, web=myip.dnsomatic.com
ssl=yes
server=updates.opendns.com
protocol=dyndns2
login=email_address
password=password
NetworkName
Save changes in a file.
#5 Run command to enable and start ddclient service daemon:
sudo systemctl enable ddclient && sudo systemctl start ddclient && sudo systemctl status ddclient
#6 Visit site: openDNS Dashboard to check sync status.
Support
Official forum topic: [1]