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
(networkmanager-dispatcher-ddclient)
imported>Dalto
(Minor update, remove dead links and minor format changes)
Line 1: Line 1:
__TOC__
[[File:Open-dns-logo.png|center]]
[[File:Open-dns-logo.png|center]]


Line 7: Line 10:
* Login on [https://www.dnsomatic.com/account/ DNS-O-Matic Site] using e-mail and password from OpenDNS.
* 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.
* 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 ==


Set DNS addresses in resolv.conf file:
Set DNS addresses in resolv.conf file:
  sudo gedit /etc/resolv.conf.head
  sudo nano /etc/resolv.conf.head


with code:<br/>
with code:<br/>
Line 20: Line 24:
<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>}}


== Setup openDNS in ddclient ==
== Setup openDNS in ddclient ==


'''#1''' Install ddclient and ddclient dispatcher for NetworkManager:
'''#1''' Install ddclient and ddclient dispatcher for NetworkManager:
  yaourt -S networkmanager-dispatcher-ddclient
  pamac build networkmanager-dispatcher-ddclient


'''#2''' Create backup a ''ddclient.conf'' file:
'''#2''' Create backup a ''ddclient.conf'' file:
Line 30: Line 35:


'''#3''' Open ''ddclient.conf'' file in text editor.
'''#3''' Open ''ddclient.conf'' file in text editor.
  sudo gedit /etc/ddclient/ddclient.conf
  sudo nano /etc/ddclient/ddclient.conf


'''#4''' Delete current content, paste in:<br/>
'''#4''' Delete current content, paste in:<br/>
Line 59: Line 64:
'''#7''' Visit site: [https://dashboard.opendns.com/ openDNS Dashboard] to check sync status.
'''#7''' Visit site: [https://dashboard.opendns.com/ openDNS Dashboard] to check sync status.


=Support=
[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://www.dnsomatic.com/ DNS-O-Matic]
* [https://en.wikipedia.org/wiki/OpenDNS Wikipedia Article]
 
* The wiki page on [[Networking|networking]
[https://en.wikipedia.org/wiki/OpenDNS Wikipedia Article]
* [https://wiki.archlinux.org/index.php/resolv.conf Arch Wiki: resolv.conf]
 
[https://wiki.manjaro.org/index.php?title=Set_DNS_and-or_Nameservers Set DNS and-or Nameservers]
 
[https://wiki.archlinux.org/index.php/resolv.conf Arch Wiki: resolv.conf]


[[Category:Contents Page]]
[[Category:Contents Page]]

Revision as of 01:37, 27 May 2019


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 nano /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 and ddclient dispatcher for NetworkManager:

pamac build networkmanager-dispatcher-ddclient

#2 Create backup a ddclient.conf file:

sudo cp /etc/ddclient/ddclient.conf /etc/ddclient/ddclient.conf.skel

#3 Open ddclient.conf file in text editor.

sudo nano /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 NetworkManager-dispatcher.service:

sudo systemctl enable NetworkManager-dispatcher.service

#6 Logout and login.

#7 Visit site: openDNS Dashboard to check sync status.


See Also

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