From a2b874c777bc18c0f0ef7ddd18c00647cf5aa8a3 Mon Sep 17 00:00:00 2001 From: wxy Date: Thu, 30 Oct 2014 15:50:18 +0800 Subject: [PATCH] PUB:20140924 How to use CloudFlare as a ddclient provider under Ubuntu @GOLinux --- ...are as a ddclient provider under Ubuntu.md | 25 ++++++++----------- 1 file changed, 11 insertions(+), 14 deletions(-) rename {translated/tech => published}/20140924 How to use CloudFlare as a ddclient provider under Ubuntu.md (78%) diff --git a/translated/tech/20140924 How to use CloudFlare as a ddclient provider under Ubuntu.md b/published/20140924 How to use CloudFlare as a ddclient provider under Ubuntu.md similarity index 78% rename from translated/tech/20140924 How to use CloudFlare as a ddclient provider under Ubuntu.md rename to published/20140924 How to use CloudFlare as a ddclient provider under Ubuntu.md index bd5f5a49ea..fb78dd7867 100644 --- a/translated/tech/20140924 How to use CloudFlare as a ddclient provider under Ubuntu.md +++ b/published/20140924 How to use CloudFlare as a ddclient provider under Ubuntu.md @@ -1,15 +1,16 @@ -Ubuntu下使用CloudFlare作为ddclient提供商 +Ubuntu下使用CloudFlare 动态域名 ================================================================================ -DDclient是一个Perl客户端,用于更新动态DNS网络服务提供商帐号下的动态DNS条目。它最初是由保罗·巴利编写的,现在大多数是由维姆潘科在做。它能做的不仅仅是动态DNS,也可以通过几种不同的方式获取你的WAN口IP地址。 - -CloudFlare有一点已知的功能,它允许你通过API或叫做ddclient的命令行脚本更新你的DNS记录。不管哪一个,结果都一样,而且它是个免费软件。 - -不幸的是,ddclient并不能在CloudFlare中即开即用。它需要打补丁,这里就是要介绍怎样在Debian或Ubuntu上破解它,它也能在带有Raspberry Pi的Raspbian上工作。 ### 需求 ### 首先保证你有一个自有域名,然后登录到CloudFlare,添加你的域名。遵循指令操作,使用它给出的默认值就行了。你将让CloudFlare来托管你的域,所以你需要调整你的注册机构的设置。如果你想要使用子域名,请为它添加一条‘A’记录。目前,任何IP地址都可以。 +DDclient是一个Perl客户端,用于更新动态DNS网络服务提供商帐号下的动态DNS条目。它最初是由保罗·巴利编写的,现在大多数是由维姆潘科在做。它能做的不仅仅是动态DNS,也可以通过几种不同的方式获取你的WAN口IP地址。 + +CloudFlare 的一个功能是它允许你通过API或叫做ddclient的命令行脚本更新你的DNS记录。不管哪一个,结果都一样,而且它是个免费软件。 + +不幸的是,ddclient并不能在CloudFlare中即开即用。它需要打补丁,这里就是要介绍怎样在Debian或Ubuntu上破解它,它也能在带有Raspberry Pi的Raspbian上工作。 + ### 在Ubuntu上安装ddclient ### 打开终端,并运行以下命令 @@ -50,15 +51,11 @@ CloudFlare有一点已知的功能,它允许你通过API或叫做ddclient的 #daemon=300 -来自CloudFlare帐号页面的api密钥 +你的 api-key 可以从 CloudFlare帐号页面找到,ssl=yes 可能已经设置,use=web, web=dyndns 表示使用 dyndns 来确定 IP(用于 NAT)。 -ssl=yes might already be in that file +你已经搞定了。登录到 https://www.cloudflare.com 并检查列出的与你域名对应的IP地址是否与 http://checkip.dyndns.com 列出的相匹配。 -use=web, web=dyndns will use dyndns to check IP (useful for NAT) - -你已经搞定了。登录到https://www.cloudflare.com并检查列出的与你域名对应的IP地址是否匹配到了http://checkip.dyndns.com。 - -使用以下命令来验证你的设置 +使用以下命令来验证你的设置: sudo ddclient -daemon=0 -debug -verbose -noquiet @@ -67,6 +64,6 @@ use=web, web=dyndns will use dyndns to check IP (useful for NAT) via: http://www.ubuntugeek.com/how-to-use-cloudflare-as-a-ddclient-provider-under-ubuntu.html 译者:[GOLinux](https://github.com/GOLinux) -校对:[校对者ID](https://github.com/校对者ID) +校对:[wxy](https://github.com/wxy) 本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出