1
0
Files
frost-zx.github.io/docs/content/query-domain-srv-records.md
2025-10-13 10:20:34 +08:00

37 lines
659 B
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: "在 Linux Windows 查询域名的 SRV 记录"
date: 2025-03-16T16:03:27Z
lastmod: 2025-03-16T16:03:47Z
tags: [Windows,Linux,域名,命令]
---
# 在 Linux Windows 查询域名的 SRV 记录
## Linux使用 dig 命令)
例如查询域名 `mc.frost-zx.top` 的用于 Minecraft 服务器的 SRV 记录:
```text
dig _minecraft._tcp.mc.frost-zx.top srv
```
## Windows使用 NSLOOKUP 命令)
例如查询域名 `mc.frost-zx.top` 的用于 Minecraft 服务器的 SRV 记录:
方式一
```text
NSLOOKUP -type=SRV _minecraft._tcp.mc.frost-zx.top
```
方式二
```text
NSLOOKUP
set type=SRV
_minecraft._tcp.mc.frost-zx.top
```