Manjaro Difference between revisions of "Sync dynamic IP with openDNS service via ddclient"

Difference between revisions of "Sync dynamic IP with openDNS service via ddclient"

From Manjaro
imported>FadeMind
imported>FadeMind
(big update - solved issue with dns-o-matic)
Line 1: Line 1:
[[File:Open-dns-logo.png|center]]
[[File:Open-dns-logo.png|center]]


== Requirements - Account on openDNS ==
Service ddclient for sync dynamic IP need account in OpenDNS. You need:
* Create an account on [https://store.opendns.com/get/home-free openDNS] and login to [https://dashboard.opendns.com/ OpenDNS Dashboard]. Create a new Network in the settings.
* Login on [https://www.dnsomatic.com/account/ DNS-O-Matic Site] using e-mail and password from OpenDNS.
* Add new Service. From list select OpenDNS. Click button '''Update account info''' for sync OpenDNS Dashboard settings with DNS-O-Matic.


== Setup openDNS in system settings ==
== Setup openDNS in system settings ==
Line 14: Line 20:
<code>nameserver 2620:0:ccc::2<br/>
<code>nameserver 2620:0:ccc::2<br/>
nameserver 2620:0:ccd::2<br/></code>}}
nameserver 2620:0:ccd::2<br/></code>}}
=== 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:
'''<code> ddclient[8999]: WARNING:  cannot connect to myip.dnsomatic.com:80 socket: IO::Socket::INET: Bad hostname 'myip.dnsomatic.com' </code>'''
If port forwarding is propertly setup, these warnings will be not showed and this mean all is fine.


== Setup openDNS in ddclient ==
== Setup openDNS in ddclient ==
Line 39: Line 33:


'''#4''' Delete current content, paste in:<br/>
'''#4''' Delete current content, paste in:<br/>
{{note| '''REMEMBER''' - replace values '''email_address''', '''password''' and '''NetworkName''' with correct values.}}
{{note| '''REMEMBER''' - replace values '''email_address''', '''password''' with correct values.}}


----
----
<code>
<code>
daemon=300<br/>
daemon=1800<br/>
syslog=yes<br/>
syslog=yes<br/>
mail=root<br/>
mail-failure=root<br/>
pid=/var/run/ddclient.pid<br/>
pid=/var/run/ddclient.pid<br/>
ssl=yes<br/>
ssl=yes<br/>
use=web, web=myip.dnsomatic.com<br/>
use=web, web=myip.dnsomatic.com<br/>
ssl=yes<br/>
server=updates.dnsomatic.com<br/>
server=updates.opendns.com<br/>
protocol=dyndns2<br/>
protocol=dyndns2<br/>
login='''email_address'''<br/>
login='''email_address'''<br/>
password='''password'''<br/>
password='''password'''<br/>
'''NetworkName'''<br/>
all.dnsomatic.com<br/>
</code>
</code>
----
----
Line 68: Line 59:
=Support=
=Support=


Official forum topic: [https://forum.manjaro.org/index.php?topic=6881.0]
[https://forum.manjaro.org/index.php?topic=6881.0 Official forum topic]


=See Also=
=See Also=


[http://opendns.com openDNS Homepage]
[http://opendns.com openDNS Homepage]
[https://www.dnsomatic.com/ DNS-O-Matic]


[https://en.wikipedia.org/wiki/OpenDNS Wikipedia Article]
[https://en.wikipedia.org/wiki/OpenDNS Wikipedia Article]

Revision as of 12:53, 12 September 2014

Open-dns-logo.png

Requirements - Account on openDNS

Service ddclient for sync dynamic IP need account in OpenDNS. You need:

  • Create an account on openDNS and login to OpenDNS Dashboard. Create a new Network in the settings.
  • Login on DNS-O-Matic Site using e-mail and password from OpenDNS.
  • Add new Service. From list select OpenDNS. Click button Update account info for sync OpenDNS Dashboard settings with DNS-O-Matic.

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


Note
If Your ISP provide IPv6 support, add these DNS IPv6 addresses entries in next lines in the /etc/resolv.conf.head file:

nameserver 2620:0:ccc::2

nameserver 2620:0:ccd::2

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:

Note
REMEMBER - replace values email_address, password with correct values.

daemon=1800
syslog=yes
pid=/var/run/ddclient.pid
ssl=yes
use=web, web=myip.dnsomatic.com
server=updates.dnsomatic.com
protocol=dyndns2
login=email_address
password=password
all.dnsomatic.com



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

See Also

openDNS Homepage

DNS-O-Matic

Wikipedia Article

Set DNS and-or Nameservers

Arch Wiki: resolv.conf

Cookies help us deliver our services. By using our services, you agree to our use of cookies.