dns.he.net批量操作工具

written in 2017 — details may be outdated

Contents
  1. 使用:
  2. 解释:

萌咖有个域名,托管在dns.he.net,有500多个A记录要删除.
但是他官网不提供多选的功能.
所以花了点时间写了一个工具,支持批量删除记录.

特点:

支持删除操作.
支持适配sub,进行删除.
支持添加记录.
更多待续…
用法:

下载地址:

wget --no-check-certificate -qO 'he.sh' 'https://moeclub.org/attachment/LinuxShell/he.sh' && chmod a+x he.sh

使用:#

  • 可用参数
bash he.sh -u [用户名] -p [密码] -del/-add -sub -d [域名] -n [子域] -r [记录] -t [记录类型]
  • 添加一个记录
bash he.sh -u [用户名] -p [密码] -add -d [域名] -n [子域] -r [记录] -t [记录类型]
  • 删除一个记录
bash he.sh -u [用户名] -p [密码] -del -d [域名] -n [子域]
  • 删除一批以某些字符开头的记录
bash he.sh -u [用户名] -p [密码] -del -sub -d [域名] -n [子域]

解释:#

www.moeclub.org
子域: www
域名: moeclub.org

全文转载自萌咖

Keyboard shortcuts

Everywhere
0 1 2 3 4Go to blog, categories, projects, friends, about
/Open search
?Show or hide this help
EscClose help or menu, clear selection
g g / GTop / bottom of page
Lists
j / k ↓ / ↑Move highlight down / up
Enter / oOpen the highlighted item
{ / }Previous / next group
Post
j / kScroll down / up
d / uScroll half a page down / up
] / [Next / previous heading
n / pOlder / newer post
lSwitch to the translation
b / BackspaceBack to the list, or home
yCopy the post URL

Search posts