---
title: "用 `host` 获取更多域名信息"
description: "你可能会用 dig 从 DNS 服务器查询域名的 A/CNAME/MX 等记录。但如果只是想快速看个概况，就用 host 吧："
canonical: https://oozou.com/til/use-host-to-get-more-information-about-domains-20
locale: zh-Hans
date: 2020-10-13
topic: shell
---

# 用 `host` 获取更多域名信息

> 你可能会用 dig 从 DNS 服务器查询域名的 A/CNAME/MX 等记录。但如果只是想快速看个概况，就用 host 吧：

Published: 2020-10-13 · Topic: [shell](https://oozou.com/zh-Hans/til-topics/shell) ([markdown](https://oozou.com/zh-Hans/til-topics/shell.md))

你可能会用 *dig* 从 DNS 服务器查询域名的 A/CNAME/MX 等记录。但如果只是想快速看个概况，就用 *host* 吧：

```
$ host oozou.com
oozou.com has address 52.89.55.136
oozou.com has address 35.165.206.160
oozou.com has address 34.212.209.65
oozou.com mail is handled by 1 aspmx.l.google.com.
oozou.com mail is handled by 5 alt1.aspmx.l.google.com.
oozou.com mail is handled by 5 alt2.aspmx.l.google.com.
oozou.com mail is handled by 10 aspmx2.googlemail.com.
oozou.com mail is handled by 10 aspmx3.googlemail.com.
```

---

Contact OOZOU: hello@oozou.com · +66 2544 0000 · https://oozou.com/zh-Hans/contact

More for AI agents: https://oozou.com/llms.txt · every page has a markdown twin at its URL plus ".md"
