惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

J
Java Code Geeks
G
Google Developers Blog
Blog — PlanetScale
Blog — PlanetScale
U
Unit 42
A
About on SuperTechFans
Vercel News
Vercel News
B
Blog
Martin Fowler
Martin Fowler
MyScale Blog
MyScale Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
腾讯CDC
D
Docker
V
Visual Studio Blog
博客园 - 叶小钗
The Cloudflare Blog
Jina AI
Jina AI
B
Blog RSS Feed
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
WordPress大学
WordPress大学
T
Tailwind CSS Blog
MongoDB | Blog
MongoDB | Blog
D
DataBreaches.Net
月光博客
月光博客
大猫的无限游戏
大猫的无限游戏

Allen Hua 的网络博客

由于 Linux 桌面没有一个好用的天气程序就写了一个跨平台的CheckitoutWeather 给 caesium-image-compressor 图片压缩程序构建了 Linux AppImage v2.8.5 最新版 debian13(debian trixie)安装了nvidia闭源驱动后从x11切换到wayland的方法 山间摩旅追风,偶遇一场绚烂晚霞 最近使用debian系统的一些心得 机械革命无界14Pro笔记本debian forky成功驱动内置扬声器和麦克风 记录 typecho 1.2.0 升级到 1.3.0 过程 开发了一款openwrt插件:文本剪贴板 解决机械革命笔记本内屏高刷240Hz闪屏问题 使用 Java 写了一个局域网端口扫描器 - Allen Hua 的网络博客 openwrt使用外置根extroot机制扩展根分区大小 - Allen Hua 的网络博客 将机场ss节点批量转换成ss字符串链接批量添加到passwall - Allen Hua 的网络博客 给机械革命钛钽plus换屏:NY2换成NZ2 - Allen Hua 的网络博客 记录一次pve宿主机和上面的debian虚机无故down机事件 - Allen Hua 的网络博客 给图床部署cdn腾讯云的edgeone并排查Cache-Control max-age 3600的问题 - Allen Hua 的网络博客 从高山草甸到徽派古村:武功山反穿与皖浙赣自驾行记 - Allen Hua 的网络博客 增程器就是充电宝?别被忽悠了 - Allen Hua 的网络博客 浦口龙虎巷扫街,记录人间真实 博客图片压缩方案更新|AVIF|WebP|MozJPEG|标准JPEG Windows 电脑使用 Obs Studio 录制各个网站视频/桌面画面教程 为typecho博客添加latex支持 新能源汽车之纯电车使用交流慢充和直流快充的充电损耗对比 2025年3月更新全国5A景区名录 2025最新查看小米/红米手机电池健康度和循环次数方法 完美解决 seafile FILE_SERVER_ROOT 配置导致的内网外网不能同时访问和上传下载的问题 纯css实现typecho博客文章文字spoiler剧透效果 我对Typecho Facile主题的一些修改,图片懒加载优化,样式定制 2024年8月我的宜昌 - 重庆 - 川西小环线自驾旅行分享 2022年打卡南京市区人防工程纳凉点 2024年带着A7C2+腾龙28-200 再次来到红山森林动物园
nslookup的querytype 详解
Allen Hua · 2021-06-02 · via Allen Hua 的网络博客
阅读量:2796

warning: 这篇文章距离上次修改已过1817天,其中的内容可能已经有所变动。

你见到过哪些有趣的加群链接?

  • 通过 base64 或者其他方式加密的字符串,将它解密就能获取加群url
  • 通过一个阅后即焚或者有时效性的url,点击即可看到链接,几天后链接过期了,你也就无法通过这个链接加入群了
  • 微信或者其他软件的二维码,一般都有时效性
  • 还有呢

今天看到一个通过 dns txt 记录值保存加群链接的,还是第一次看到~

c9719df7eff9a428ddf067b88b76b73.png

类unix系统

通过 nslookup -querytype=TXT xxx.org 就能在终端快速查询到加群链接,这里得到的查询结果一般情况下都是非权威应答。除非是请求到所在主机才查到目标IP才是权威应答。

20210602171857.png

windows系统

cmd 下使用 nslookup -qt=TXT xxx.org 就能在cmd终端快速查询到加群链接


扩展:与nslookup 类似的命令有dig,实现本文的需求,也可以使用dig命令查询

[root@justhostRU ~]# dig xxx.org TXT

; <<>> DiG 9.11.4-P2-RedHat-9.11.4-16.P2.el7_8.6 <<>> xxx.org TXT
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 11340
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;xxx.org.          IN      TXT

;; ANSWER SECTION:
xxx.org.   599     IN      TXT     "https://t.me/xxx"

;; Query time: 423 msec
;; SERVER: 77.88.8.8#53(77.88.8.8)
;; WHEN: Fri Jun 04 15:32:00 CST 2021
;; MSG SIZE  rcvd: 100

下面简单学习一下 nslookup

功能: query Internet name servers interactively (交互式)查询互联网域名

命令格式

nslookup [-option] [name | -] [server]

功能详细描述:

Nslookup is a program to query Internet domain name servers. Nslookup has two modes:
interactive and non-interactive. Interactive mode allows the user to query name servers for
information about various hosts and domains or to print a list of hosts in a domain.
Non-interactive mode is used to print just the name and requested information for a host or
domain.

Nslookup 是一个查询 Internet 域名服务器的程序。
Nslookup 有两种模式:交互式和非交互式。

  • 交互模式允许用户查询名称服务器有关各种主机和域的信息或打印域中的主机列表。
  • 非交互模式用于仅打印主机的名称和请求的信息或领域。

下面来学习一下 querytype 也就是 dns record 到底有哪些记录

该选项默认值是A,也就是执行 nslookup baidu.com 默认查询 A记录,也就是 Address 地址

querytype Specifies a DNS resource record type. The default resource record type is A, but you can use any of the following values:

  • A: Specifies a computer's IP address.
  • ANY: Specifies a computer's IP address.
  • CNAME: Specifies a canonical name for an alias.
  • GID Specifies a group identifier of a group name.
  • HINFO: Specifies a computer's CPU and type of operating system.
  • MB: Specifies a mailbox domain name.
  • MG: Specifies a mail group member.
  • MINFO: Specifies mailbox or mail list information.
  • MR: Specifies the mail rename domain name.
  • MX: Specifies the mail exchanger.
  • NS: Specifies a DNS name server for the named zone.
  • PTR: Specifies a computer name if the query is an IP address; otherwise, specifies the pointer to other information.
  • SOA: Specifies the start-of-authority for a DNS zone.
  • TXT: Specifies the text information.
  • UID: Specifies the user identifier.
  • UINFO: Specifies the user information.
  • WKS: Describes a well-known service.

以上 dns record type ➡️️ 原文戳我 常用的记录值也就是 A AAAA CNAME MX NS TXT

关于 nslookup command, ibm 官方文档和 man nslookup 差不多: https://www.ibm.com/docs/en/aix/7.2?topic=n-nslookup-command

推荐:一个不错的在线解析dns网站,包含多种记录返回。 戳我

end.