Table of Contents
google王道,google知道的果然太多了。
DNS解析使用Namecheap,动态IP绑定A地址使用ddclient软件。
1 2 3 |
$ sodu apt-get install ddclient |
修改/etc/ddclient.conf配置文件
1 2 3 4 5 6 7 8 9 |
pid=/var/run/ddclient.pid protocol=namecheap # using namecheap protocol use=web # using default dyndns to obtain ip server=dynamicdns.park-your-domain.com # default server name login=kaoru-home.com # your domain name password=your-password # you password @,www # which sub-domain you want to update |
最后修改/etc/default/ddclient文件,将run_daemon改成true、run_ipup改成false。
1 2 3 |
$ sudo /etc/init.d/ddclient start |
That’s all.