Linux
Mac OS
VMware
OpenWrt
ソフトウェア開発
Linux
Mac OS
VMware
OpenWrt
ソフトウェア開発
自宅サーバのIPが固定ではないので DDNS を使用している。ルータの機能で更新もできるが、DDclient で更新することにする。
apt-get でインストール。
$ sudo apt-get install ddclient
インストール中に質問があるので答える。
設定は /etc/ddclient.conf に保存されている。 設定を追加する。
sudo vi /etc/ddclient.conf
# write syslog syslog=yes # mail to root if IP updated mail=root # mail to root if failed IP updating mail-failure=root
アップデートできるか確認
$ sudo ddclient -daemon=0 -debug -verbose -noquiet
設定が終わったら再起動
$ sudo /etc/init.d/ddclient restart
再設定のコマンド。
$ sudo dpkg-reconfigure ddclient