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