使用D+接口解析域名

This commit is contained in:
若海 committed 2015-07-07 10:19:34 +08:00
1 parent e129176331
commit e9757e33e0
1 file changed
+6 -5
+6 -5
View File
@@ -1,11 +1,12 @@
#!/bin/sh
#################################################
# AnripDdns v3.08.09
# 基于DNSPod用户API实现的动态域名客户端a
# AnripDdns v5.07.07
# 基于DNSPod用户API实现的动态域名客户端
# 作者: 若海[mail@anrip.com]
# 介绍: http://www.anrip.com/ddnspod
# 时间: 2013-08-08 23:25:00
# 时间: 2015-07-07 10:25:00
#################################################
# 全局变量表
@@ -20,8 +21,8 @@ arIpAdress() {
# 查询域名地址
# 参数: 待查询域名
arNslookup() {
local dnsvr="114.114.114.114"
nslookup ${1} $dnsvr | tr -d '\n[:blank:]' | sed 's/.\+1 \([0-9\.]\+\)/\1/'
local dnsvr="http://119.29.29.29/d?dn="
wget --quiet --no-check-certificate --output-document=- $dnsvr$1
}
# 读取接口数据