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>Handy
(Marked this version for translation)
 
(13 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<languages/>
__TOC__
[[File:Open-dns-logo.png|center]]
[[File:Open-dns-logo.png|center]]
<translate>
== Requirements - Account on openDNS == <!--T:1-->
<!--T:2-->
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 == <!--T:3-->


Create a file:
<!--T:4-->
  sudo gedit /etc/resolv.conf.head
Set DNS addresses in resolv.conf file:
  {{UserCmd|command=sudo nano /etc/resolv.conf.head}}


<!--T:5-->
with code:<br/>
with code:<br/>
<code>nameserver 208.67.222.222<br/>
<code>nameserver 208.67.222.222<br/>
nameserver 208.67.220.220<br/></code>
nameserver 208.67.220.220<br/></code>


{{note| If Your ISP provide IPv6 support, add these DNS IPv6 addresses entries in next lines in the ''/etc/resolv.conf.head'' file:<br/>
<!--T:6-->
{{note| If Your ISP provide IPv6 support, add these DNS IPv6 addresses entries in next lines in the ''/etc/resolv.conf.head'' file:
 
<!--T:18-->
IPv6 DNS server addresses are:<br/>
<code>nameserver 2620:119:35::35<br/>
nameserver 2620:119:53::53</code>
 
<!--T:19-->
Does not provide any level of filtering:<br/>
<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</code>
}}


== Setup openDNS in ddclient ==
== Setup openDNS in ddclient == <!--T:7-->


'''#1''' Install ddclient:
<!--T:8-->
  sudo pacman -S ddclient
'''#1''' Install ddclient and ddclient dispatcher for NetworkManager:
  {{UserCmd|command=pamac build networkmanager-dispatcher-ddclient}}


'''#2''' Fix '''ddclient.service''' file:
<!--T:9-->
  wget -O ddclient.service "https://copy.com/XISYqc3MH6xs/ddclient.service?download=1" && sudo mv ddclient.service /usr/lib/systemd/system/ddclient.service
'''#2''' Create backup a ''ddclient.conf'' file:
  {{UserCmd|command=sudo cp /etc/ddclient/ddclient.conf /etc/ddclient/ddclient.conf.skel}}


'''#3''' Create backup a ''ddclient.conf'' file:
<!--T:10-->
  sudo cp /etc/ddclient/ddclient.conf /etc/ddclient/ddclient.conf.bak
'''#3''' Open ''ddclient.conf'' file in text editor.
  {{UserCmd|command=sudo nano /etc/ddclient/ddclient.conf}}


'''#4''' Open ''ddclient.conf'' file in text editor.
<!--T:11-->
sudo gedit /etc/ddclient/ddclient.conf
'''#4''' Delete current content, paste in:<br/>
 
{{note| '''REMEMBER''' - replace values '''email_address''', '''password''' with correct values.}}
'''#5''' Delete current content, paste in:<br/>
{{note| '''REMEMBER''' - replace values '''email_address''', '''password''' and '''NetworkName''' with correct values.}}


<!--T:12-->
----
----
<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 52: Line 75:
Save changes in a file.
Save changes in a file.


'''#6''' Run command to enable and start ddclient service daemon:
<!--T:13-->
  sudo systemctl enable ddclient && sudo systemctl start ddclient && sudo systemctl status ddclient
'''#5''' Run command to enable NetworkManager-dispatcher.service:
  {{UserCmd|command=sudo systemctl enable NetworkManager-dispatcher.service}}
 
<!--T:14-->
'''#6''' Logout and login.


<!--T:15-->
'''#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=
=See Also= <!--T:16-->
 
Official forum topic: [https://forum.manjaro.org/index.php?topic=6881.0]
 
=See Also=
 
[http://opendns.com openDNS Homepage]
 
[https://en.wikipedia.org/wiki/OpenDNS Wikipedia Article]
 
[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]]
<!--T:17-->
* [http://opendns.com openDNS Homepage]
* [https://www.dnsomatic.com/ DNS-O-Matic]
* [https://support.opendns.com/hc/en-us/articles/227986667-Does-OpenDNS-Support-IPv6- Does OpenDNS Support IPv6?]
* [https://en.wikipedia.org/wiki/OpenDNS Wikipedia Article]
* The wiki page on [[Networking|networking]]
* [https://wiki.archlinux.org/index.php/resolv.conf Arch Wiki: resolv.conf]
</translate>
[[Category:Contents Page{{#translation:}}]]

Latest revision as of 05:49, 15 February 2023

Other languages:
English • ‎русский


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:

user $ sudo nano /etc/resolv.conf.head COPY TO CLIPBOARD


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:

IPv6 DNS server addresses are:
nameserver 2620:119:35::35
nameserver 2620:119:53::53

Does not provide any level of filtering:
nameserver 2620:0:ccc::2
nameserver 2620:0:ccd::2

Setup openDNS in ddclient

#1 Install ddclient and ddclient dispatcher for NetworkManager:

user $ pamac build networkmanager-dispatcher-ddclient COPY TO CLIPBOARD


#2 Create backup a ddclient.conf file:

user $ sudo cp /etc/ddclient/ddclient.conf /etc/ddclient/ddclient.conf.skel COPY TO CLIPBOARD


#3 Open ddclient.conf file in text editor.

user $ sudo nano /etc/ddclient/ddclient.conf COPY TO CLIPBOARD


#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:

user $ sudo systemctl enable NetworkManager-dispatcher.service COPY TO CLIPBOARD


#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.