How do I configure Dynamic DNS Client on FreeBSD.

In First, Confirm your Domain's Nameserver has been modified.
NS1.AFRAID.ORG
NS2.AFRAID.ORG
NS3.AFRAID.ORG
NS4.AFRAID.ORG

step 1. Install ddClient from ports.

$ sudo pkg install ddclient
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 4 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        ddclient: 3.8.3_3
        p5-IO-Socket-SSL: 2.051
        p5-Mozilla-CA: 20160104
        p5-Net-SSLeay: 1.81

Number of packages to be installed: 4

The process will require 2 MiB more space.
590 KiB to be downloaded.

Proceed with this action? [y/N]: y
[1/4] Fetching ddclient-3.8.3_3.txz: 100%   43 KiB  44.5kB/s    00:01
[2/4] Fetching p5-IO-Socket-SSL-2.051.txz: 100%  158 KiB 162.1kB/s    00:01
[3/4] Fetching p5-Mozilla-CA-20160104.txz: 100%  147 KiB 150.0kB/s    00:01
[4/4] Fetching p5-Net-SSLeay-1.81.txz: 100%  242 KiB 247.4kB/s    00:01
Checking integrity... done (0 conflicting)
[1/4] Installing p5-Mozilla-CA-20160104...
[1/4] Extracting p5-Mozilla-CA-20160104: 100%
[2/4] Installing p5-Net-SSLeay-1.81...
[2/4] Extracting p5-Net-SSLeay-1.81: 100%
[3/4] Installing p5-IO-Socket-SSL-2.051...
[3/4] Extracting p5-IO-Socket-SSL-2.051: 100%
[4/4] Installing ddclient-3.8.3_3...
Extracting ddclient-3.8.3_3: 100%
Message from ddclient-3.8.3_3:
***********************************************************

Copy
        /usr/local/etc/ddclient.conf.sample
to
        /usr/local/etc/ddclient.conf

and edit it to fit your needs.

If you would like to run ddclient as a daemon add the
following line to /etc/rc.conf

        ddclient_enable="YES"

If you would like to force ddclient to update your account
daily regardless of IP changes add the following line to
your /etc/periodic.conf

        daily_ddclient_force_enable="YES"

***********************************************************

step 2. Configuration.

Ⅰ. run addclient as a deamon.

$ sudo sysrc ddclient_enable=YES

Ⅱ. If you would like to force ddclient to update your account
daily regardless of IP changes add the following line to
your /etc/periodic.conf


# echo 'daily_ddclient_force_enable="YES"' >> /etc/periodic.conf

Ⅲ. Configure /usr/local/etc/ddclient.conf
Run "ifconfig" to know your if.
Sample config:

daemon=300                              # check every 300 seconds
syslog=no                               # log update msgs to syslog
#mail=root                              # mail all msgs to root
#mail-failure=root                      # mail failed update msgs to root
pid=/var/run/ddclient.pid               # record PID in file.
ssl=yes                                 # use ssl-support.  Works with
                                        # ssl-library

use=if, if=eth0
#use=web, web=ipinfo.io/ip
#use=web, web=checkip.dyndns.org
#use=web, web=checkip.dyndns.com/, web-skip='IP Address'
#use=web, web=checkip.dyndns.org, web-skip='Current IP Address: '
server=freedns.afraid.org
protocol=freedns
login=login_name
password=the_password
domain1, domain2, subdomain.mooo.com



Comments

Popular posts from this blog

Python3 + Django + uWSGI + Nginx On FreeBSD

arduino最小構成 (atmega328/8MHz/3.3V/内部クロック)FT232RLにてブートローダーの書き込み

FreeBSD: Configuring Apache to permit CGI