Differences between revisions 1 and 5 (spanning 4 versions)
Revision 1 as of 2020-12-03 21:31:04
Size: 934
Comment:
Revision 5 as of 2022-09-26 19:26:02
Size: 2132
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= ddclient = ## page was renamed from Ddclient
= Ddclient =
Line 3: Line 4:
'''ddclient''' is a script that automatically updates Dynamic DNS records. It is written in Perl with only a few library dependencies. '''`ddclient(8)`''' is a script that automatically updates Dynamic DNS records. It is written in Perl with only a few library dependencies.
Line 12: Line 13:

Note: some distributors (i.e. FreeBSD) fail to package the manual page.
Line 28: Line 31:
An example configuration would be: The minimum configuration of `ddclient(8)` specifies...

 1. A method for obtaining the public IP address
 2. The Dynamic DNS protocol

The simplest configurations use a public website to discover the public IP address.
Line 32: Line 40:
protocol=googledomains
login=login_without_quotes
password='password_in_quotes'
Line 36: Line 41:
this-servers-domain-name.com
Line 43: Line 47:
=== Routers ===

As an alternative to using a public website, `ddclient(8)` can obtain the IP address directly from a router.

See [[https://ddclient.net/routers.html|here]] for a list of supported routers and the router-specific configurations.



=== Protocols ===

`ddclient(8)` supports a wide variety of Dynamic DNS protocols, including the in-house protocols of various domain providers.

For a Google Domains registration, try the following:

{{{
protocol=googledomains
login=login_without_quotes
password='password_in_quotes'
fully.qualified.domain.name
}}}

See [[https://ddclient.net/protocols.html|here]] for a list of supported protocols and the protocol-specific configurations.



=== /etc/default/ddclient ===

Some `systemd`-capable distributions break the daemon configuration into a separate file, at `/etc/default/ddclient`. The basic setup for this file is:

{{{
run_dhclient="false"
run_ipup="false"
run_daemon="true"
daemon_interval="300"
}}}


Ddclient

ddclient(8) is a script that automatically updates Dynamic DNS records. It is written in Perl with only a few library dependencies.


Installation

Install the ddclient package. It is widely available, but some package manager may not detect the perl dependencies.

Note: some distributors (i.e. FreeBSD) fail to package the manual page.

For systemd-capable systems, start and enable ddclient.service.

For FreeBSD-style init systems, set the following lines into /etc/rc.conf:

ddclient_enable="YES"
ddclient_flags="-daemon 900"


Configuration

The minimum configuration of ddclient(8) specifies...

  1. A method for obtaining the public IP address
  2. The Dynamic DNS protocol

The simplest configurations use a public website to discover the public IP address.

ssl=yes
use=web, web=checkip.dyndns.com

When testing a configuration, consider running ddclient -daemon=0 -debug -verbose -noquiet.

Routers

As an alternative to using a public website, ddclient(8) can obtain the IP address directly from a router.

See here for a list of supported routers and the router-specific configurations.

Protocols

ddclient(8) supports a wide variety of Dynamic DNS protocols, including the in-house protocols of various domain providers.

For a Google Domains registration, try the following:

protocol=googledomains
login=login_without_quotes
password='password_in_quotes'
fully.qualified.domain.name

See here for a list of supported protocols and the protocol-specific configurations.

/etc/default/ddclient

Some systemd-capable distributions break the daemon configuration into a separate file, at /etc/default/ddclient. The basic setup for this file is:

run_dhclient="false"
run_ipup="false"
run_daemon="true"
daemon_interval="300"


CategoryRicottone

Perl/Ddclient (last edited 2023-06-29 17:19:35 by DominicRicottone)