Differences between revisions 1 and 2
Revision 1 as of 2020-12-03 21:31:04
Size: 934
Comment:
Revision 2 as of 2020-12-04 18:42:12
Size: 1809
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
'''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 12:

Note: some distributors (i.e. FreeBSD) fail to package the manual page.
Line 28: Line 30:
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 39:
protocol=googledomains
login=login_without_quotes
password='password_in_quotes'
Line 36: Line 40:
this-servers-domain-name.com
Line 43: Line 46:
=== 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.


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.


CategoryRicottone

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