Leask's profile#import "Leask.h"BlogListsGuestbook Tools Help

Blog


    Mac上使用固定域名解释到动态IP的方法(类似于“花生壳”的用法)

    很多人都有需要把固定域名解释到动态IP,因为很多人想在自己的电脑上提供主机服务,但是又苦于ISP提供的是动态IP而非固定IP。
    怎么办呢?Windows上有“花生壳”(请自行Google),那么Mac上呢?其实Mac上也有简便的解决方案的。

    实现固定域名解释到动态IP,我们需要满足两个条件:

    1. 我们首先需要一个支持实时修改IP地址映射的DNS服务器;
    2. 我们还需要一个上传本地IP地址到远程DNS服务器的客户端程序。

    OK,我们来一个一个解决。

    第一个问题我们可以通过D-Link Dynamic DNS解决,该服务目前免费。注册地址是:https://www.dlinkddns.com/
    Screen shot 2009-10-24 at 4.32.54 PM
    注册后会得到一个域名,然后你可以填上你当前的IP地址。 那么你已经能让全球的朋友通过这个域名访问你的电脑了,那么问题是如果你的IP改变了,是不是就需要重新登录这个页面填写新的IP呢?所以我们需要接着解决第二个问题。

    第二个问题我们可以通过DNS-O-Matic解决,该服务目前免费。注册地址是:https://www.dnsomatic.com/
    DNS-O-Matic是不提供DNS服务的,它关注的是更新各种DNS服务上的动态IP地址,DNS-O-Matic支持上面提到的D-Link Dynamic DNS,同时也支持OpenDNS。
    Screen shot 2009-10-24 at 4.39.39 PM 
    DNS-O-Matic的注册也同样简单,注册后你可以添加你所使用的DNS服务,如输入你的D-Link Dynamic DNS帐号、密码和域名。
    为什么要引入DNS-O-Matic呢?因为DNS-O-Matic支持开放式的API,你可以通过各种形式的客户端或者脚本来更新你提交你的本地IP地址。
    如以下这个Mac上的小脚本DNS-O-Matic Updater就是我们所需要的了:
    http://web.me.com/zweigand/zweisoft/Software/Entries/2009/1/13_DNS-O-Matic_Updater_1.4.html
    下载并填写你的DNS-O-Matic帐号就OK了,以后只需要启动这个小脚本,就能自动更新你的动态IP了哦。

    使用起来,比“花生壳”还要便捷,而且一切都是免费的。
    对了,最后提一下,如果你自己有一个域名,那么可以把自己的域名CNAME到你的D-Link Dynamic DNS域名,就能实现通过自己的域名,任何时候都能访问你的电脑了。

    // 最后预告一下,Flora_ssh-D,也就是我的翻墙脚本的下一个版本也将直接使用DNS-O-Matic的API而不是调用DNS-O-Matic_Updater来更新动态IP了,敬请关注。

    Comments

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.

    To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


    Don't have a Windows Live ID? Sign up

    Trackbacks

    The trackback URL for this entry is:
    http://honeonet.spaces.live.com/blog/cns!15BAC1A170471DB!15073.trak
    Weblogs that reference this entry
    • None