花生壳和pubyun(原3322)在linux下快速解析

admin3年前复制粘贴1138

一、花生壳通过设置路由器自定义地址(免费版已经无法解析)

http://用户名:密码@/ddns.oray.com/ph/update?&hostname=域名/
curl -fsSu "username:password" "http://ddns.oray.com/ph/update?&hostname=域名"
wget --user=username --password=password -O- "http://ddns.oray.com/ph/update?&hostname=域名"

二、pubyun

使用lynx(一般的Linux,BSD都自带)
lynx -mime_header -auth=用户名:密码 "http://members.3322.net/dyndns/update?system=dyndns&hostname=域名" 
curl -u 用户名:密码 "http://members.3322.net/dyndns/update?system=dyndns&hostname=域名"


三、dynv6

https://dynv6.com/

#!/usr/bin/env bash

V4_BASE="https://ipv4.dynv6.com/api/update?ipv4=auto"
V6_BASE="https://ipv6.dynv6.com/api/update?ipv6=auto"

#此处后期可以取脚本运行参数
ZONE="your domain" 
#此处后期可以取脚本运行参数
TOKEN="your token value"

QUERY="zone=${ZONE}&token=${TOKEN}"

V4_URL="${V4_BASE}&${QUERY}"
V6_URL="${V6_BASE}&${QUERY}"

curl -fsS "${V4_URL}"
curl -fsS "${V6_URL}"

#wget -O- "${V4_URL}"
#wget -O- "${V6_URL}"


相关文章

Ubuntu编译安装Nginx(转)

1、依赖安装sudo apt-get update sudo apt-get install build-essential sudo ...

Ubnt路由器设置ssl证书(转)

根据 Ubnt路由器更换HTTPS证书文件 的说明,更换证书,大部分情况下我们再CA机构拿到的证书一般是 xxx.pem xxx.key 两个文件(nginx)版,或者apache版 xxx.key...

screen几个命令

参数说明-A  将所有的视窗都调整为目前终端机的大小。-d <作业名称>  将指定的screen作业离线。-h <行数>  指定视窗的缓冲区行数。-m  即使目前已在作业中的s...

ubuntu的一些基本设置

一、设置开机启动(/etc/rc.local)将/lib/systemd/system/rc-local.service 链接到 /etc/systemd/system/# ln ...

Python依赖安装

一、依赖清单导出和包下载在项目根目录执行 #仅生成当前项目依赖清单文件(和freeze命令 二选一) requirements.txt pipreqs ./&nb...

windows配置PAC自动脚本(转)

PAC文件内容示例function FindProxyForURL(url, host) { var proxy1 = "P...

发表评论    

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。