内网中的生活实在很艰辛…… 遥想当年为了能方便大伙挑 CS, LD 在童鞋的牛鼻电脑上搞了个 CS服务器,还是为了方便访问 CS服务器, 用花生壳实现了动态域名。(宿舍网络不在同一局域网中,平时楼上楼下只能拉线了事)
虽然花生壳也是有 Linux版的,但其只能使用免费的二级域名还是让人很不爽。 前段时间一不小心看到有人介绍国外免费的域名解析服务站点: zoneedit,支持顶级域名; 试了一下子,果然不是盖的,简简单单实现了动态域名。 纪录一下步骤:
- 配置好你的 LAMP(记住,点不亮不行哦,别人会迷路的);
不幸生存在路由之后的,做好端口映射; -
- 去 zoneedit 注册一个账号,它会把用户名和密码发到你的邮箱里;
- 把你域名的DNS改成: ns13.zoneedit.com 和 ns17.zoneedit.com ;(万网的域名解析比较慢,等吧……)
- 把域名(以 mifunny.cn 为例)加入 zoneedit 的 zone 中;
- 编辑 zone 的”IP addresses (A)”选项, 添加 mifunny.cn 、www.mifunny.cn 和 *.mifunny.cn 添加到你目前的公网IP(使用 whois 查询);
- 你也可以把二级域名定向到不同的主机上,总之主动权在你自己手中哦 ^{^
-
- 在自己的主机上安装 ddclient, Arch 和 Ubuntu 用户直接使用软件源安装;
- 编辑 /etc/ddclient/ddclient.conf ,这个文件不同发行版位置不同;
- 配置如下:
daemon=300 # 每隔 300秒更新一次IP
syslog=yes # log update msgs to syslog
pid=/var/run/ddclient.pid # record PID in file.
ssl=yes # use ssl-support. Works with ssl-library
##
## ZoneEdit (zoneedit.com)
##
server=dynamic.zoneedit.com,
protocol=zoneedit1,
use=web,web=www.who.is/,web-skip=’Your IP is ‘
login=’邮件中的用户名’,
password=’邮件中的密码’
# your.any.domain,your-2nd.any.dom
mifunny.cn
www.mifunny.cn
*.mifunny.cn - 启动ddclient, ~$ sudo /etc/rc.d/ddclient start
- 还不知足? 那么把 ddclient 添加到开机服务里。 遇到问题请 Google、Baidu
实际上 ddclient.conf 列出了好多配置方案,对应不同商: dyndns.org 、zoneedit.com 、easydns.com 、hn.org 、dslreports.com 、orgdns.org 、dnspark.com 、namecheap.com 。 有兴趣可以一个一个都试试,总有适合你的。
第一时间看到更多精彩内容,欢迎 RSS feed,谢谢你的访问!
本文固定链接: http://mifunny.info/use-dynamic-domain-under-linux-126.html
此站点遵守 知识共享协议!
转载请注明文章出处及本文链接,非常感谢!
关键字: domain, zoneedit, 动态域名, 大佛Linux
本文固定链接: http://mifunny.info/use-dynamic-domain-under-linux-126.html
此站点遵守 知识共享协议!
转载请注明文章出处及本文链接,非常感谢!


10月 12th, 2008 at 8:43 下午
消灭0回复~
[回复]
10月 16th, 2008 at 9:31 下午
3322的感觉也不错呀,可以用cname解析。
[回复]
10月 17th, 2008 at 11:19 下午
动态域名CS服务器,还真能想出来,呵呵。
[回复]
10月 24th, 2008 at 3:48 下午
[...] http://mifunny.info/use-dynamic-domain-under-linux-126.html [...]
11月 22nd, 2008 at 5:03 下午
[...] IP,这样不容易出错。 如果没有 DNS 解析服务的话,可以使用 LD 在 在Linux下实现动态域名 一文中提到的免费域名 DNS 解析服务: zoneedit 。 [...]
12月 9th, 2008 at 5:33 下午
Sir, Without knowing your language Ientered this site.Sorry!I am not well versed with site building.Pl. help me.
[回复]
LD 回复:
12月 10th, 2008 at 7:37 下午
but your site is well, what do you mean?
[回复]