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

admin2年前复制粘贴810

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

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}"


相关文章

frp配置(转)

Frp服务的搭建搭建frp很简单,关键的步骤只有三步:1、获取frp文件;2、设置frp配置文件,3、启动frp服务。(注意frp搭建的的这三步是分为客户端和服务端的,但是操作基本是一致的。)本教程f...

linux设置swap分区(转)

1、linux设置swap查看swap位置cat /proc/swaps得到你的swap文件的位置,但不一定叫swap,或许叫/dev/sdb5。关闭并删除较小的swap文件sudo&nbs...

docker常用命令(持续添加...)

#搜索镜像 php可替换为其他 docker search php #拉取php镜像 docker pull php #拉取指定版本镜...

zip和unzip基本命令(转)

一、基本参数1、zip命令的常用参数-d:从压缩文件内删除指定的文件-D:压缩文件内不建立目录名称-g:将文件压缩后附加在已有的压缩文件之后,而非另行建立新的压缩文件-m:将文件压缩并加入压缩文件后,...

git 简单常用命令(持续添加...)

#创建一个服务器仓库 git --bare init myRepository.git #克隆一个仓库到本地 git clone git@服...

mysql导出指定时间段binlog(需要已经开启binlog)

mysqlbinlog --no-defaults --start-datetime="2018-09-06 13:45:00" --sto...

发表评论    

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