关于Dyn Updater的问题

67 views
Skip to first unread message

Brooklyn Huang

unread,
Apr 10, 2014, 11:03:32 PM4/10/14
to sh...@googlegroups.com

我目前使用dyndns作DDNS, 在本地机器上装了一个Dyn Updater自动更新IP.

但是Dyn Updater一直报API Error, 看了日志,发现是调用 checkip.dyndns.org 时出错。

于是在浏览器里访问,果然不行,翻墙了就可以。

顿时醒悟, 打开翻墙软件,在浏览器中可以访问到checkip.dyndns.org 并得到IP.

但是在翻墙软件打开的情况下,使用Dyn Updater却依然无法调用这个API. 

感觉困惑,Dyn Updater也没有设置代理的地方。求解,求破,谢谢

liyaoshi

unread,
Apr 11, 2014, 12:27:33 AM4/11/14
to sh...@googlegroups.com

curl -s http://checkip.dyndns.org |cat |grep -P '\d+\.\d+\.\d+.\d+' -o




--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛中的“Shanghai Linux User Group”论坛。
要退订此论坛并停止接收此论坛的电子邮件,请发送电子邮件到shlug+un...@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout

liyaoshi

unread,
Apr 11, 2014, 12:30:14 AM4/11/14
to sh...@googlegroups.com
curl -s http://checkip.dyndns.org |cat |grep -P '\d+\.\d+\.\d+\.\d+' -o

自我修正一把

liyaoshi

unread,
Apr 11, 2014, 12:45:40 AM4/11/14
to sh...@googlegroups.com
好像可以不要cat

curl -s http://checkip.dyndns.org |grep -P '\d+\.\d+\.\d+\.\d+' -o

不过你要是设置了代理,得到的就是代理的ip了啊

国内3322好像有这种接口

brooklynb7

unread,
Apr 11, 2014, 12:53:06 AM4/11/14
to sh...@googlegroups.com
哎,对,拿到代理的ip也没啥用了。。。

brooklynb7

unread,
Apr 11, 2014, 12:56:06 AM4/11/14
to sh...@googlegroups.com
也只能用国内的服务商了


2014-04-11 12:45 GMT+08:00 liyaoshi <liya...@gmail.com>:

liyaoshi

unread,
Apr 11, 2014, 12:57:50 AM4/11/14
to sh...@googlegroups.com
百度好像有的

liyaoshi

unread,
Apr 11, 2014, 2:25:32 AM4/11/14
to sh...@googlegroups.com
再来!

curl -s http://www.net.cn/static/customercare/yourip.asp | grep -P '\d+\.\d+\.\d+\.\d+' -o | sed -n 1p

因为我得到的是2 个ip ,我也不知道我们公司代理的公网ip是多少

你自己凑合看,我觉得应该是第一个。

liyaoshi

unread,
Apr 11, 2014, 2:29:41 AM4/11/14
to sh...@googlegroups.com
搭车同求


这个页面怎么得ip地址 ?

抓下来的页面没有看到对应的字符串啊

AR

unread,
Apr 11, 2014, 2:34:00 AM4/11/14
to sh...@googlegroups.com
2014-04-11 14:29 GMT+08:00 liyaoshi <liya...@gmail.com>:
> 搭车同求
>
> http://www.baidu.com/#wd=ipaddress&rsv_spt=1&issp=1&rsv_bp=0&ie=utf-8&tn=baiduhome_pg&rsv_sug3=2&rsv_sug4=1420&rsv_sug1=1&f=3&rsp=0&inputT=3428
>
> 这个页面怎么得ip地址 ?
>
> 抓下来的页面没有看到对应的字符串啊

用 JavaScript 异步加载显示的。

关闭 JavaScript 后再访问查询看到 URL 里有个 nojs=1 的参数可以试试。

http://www.baidu.com/s?wd=ipaddress&ie=utf-8&nojs=1

--
Silence is golden.

姚 飞

unread,
Apr 11, 2014, 2:38:31 AM4/11/14
to sh...@googlegroups.com
我也用 dyndns 啊,客户端就是ddclient 。 昨天四月十号似乎有一次访问checkip超时,现在都好好的啊。



在 2014年4月11日,上午11:03,Brooklyn Huang <brook...@gmail.com> 写道:

Chaos Eternal

unread,
Apr 11, 2014, 2:57:25 AM4/11/14
to sh...@googlegroups.com
一直用3322.org + cname搞定。
当然安全性需要另外的东西来保障

liyaoshi

unread,
Apr 11, 2014, 3:00:25 AM4/11/14
to sh...@googlegroups.com
嗯,又学一招

我再没节操点问问,javascript打开的话,能得么?

谁给演示一把啊


--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
---
您收到此邮件是因为您订阅了 Google 网上论坛的“Shanghai Linux User Group”论坛。

Jianlei Zhang

unread,
Apr 12, 2014, 3:29:45 AM4/12/14
to sh...@googlegroups.com
我怎么记得dyndns提供的默认配置里面获取IP的页面是这个:http://checkip.dyndns.com

刚测试过dyndns.org被墙,dyndns.com没被墙。
> --
> -- You received this message because you are subscribed to the Google Groups
> Shanghai Linux User Group group. To post to this group, send email to
> sh...@googlegroups.com. To unsubscribe from this group, send email to
> shlug+un...@googlegroups.com. For more options, visit this group at
> https://groups.google.com/d/forum/shlug?hl=zh-CN
> ---
> 您收到此邮件是因为您订阅了Google网上论坛中的“Shanghai Linux User Group”论坛。
> 要退订此论坛并停止接收此论坛的电子邮件,请发送电子邮件到
> shlug+un...@googlegroups.com
> 要查看更多选项,请访问https://groups.google.com/d/optout

--
此致

张建雷 敬上

Easior Lars

unread,
Apr 14, 2014, 3:29:22 AM4/14/14
to sh...@googlegroups.com
>>>>> "BH" == Brooklyn Huang <brook...@gmail.com> writes:
想问一下,dyndns 还能免费注册嘛,
怎么找不到链接了?
BH> 我目前使用dyndns作DDNS, 在本地机器上装了一个Dyn Updater自动更新IP.
BH> 但是Dyn Updater一直报API Error, 看了日志,发现是调用 checkip.dyndns.org 时出错。

BH> 于是在浏览器里访问,果然不行,翻墙了就可以。

BH> 顿时醒悟,打开翻墙软件,在浏览器中可以访问到checkip.dyndns.org 并得到IP.

BH> 但是在翻墙软件打开的情况下,使用Dyn Updater却依然无法调用这个API.

BH> 感觉困惑,Dyn Updater也没有设置代理的地方。求解,求破,谢谢

BH> --
BH> -- You received this message because you are subscribed to the Google Groups
BH> Shanghai Linux User Group group. To post to this group, send
BH> email to sh...@googlegroups.com. To unsubscribe from this group, send email to
BH> shlug+un...@googlegroups.com. For more options, visit
BH> this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
BH> ---
BH> 您收到此邮件是因为您订阅了Google网上论坛中的“Shanghai Linux User Group”论坛。
BH> 要退订此论坛并停止接收此论坛的电子邮件,请发送电子邮件到
BH> shlug+un...@googlegroups.com
BH> 要查看更多选项,请访问https://groups.google.com/d/optout


--
Best regards,

Easior Lars
Reply all
Reply to author
Forward
0 new messages