---
title: "`host` でドメインの詳細情報を取得する"
description: "DNSサーバーからドメインのA/CNAME/MXなどのレコードを調べるのに dig を使っているかもしれません。しかし、手早く概要を知りたいだけなら host を使いましょう。"
canonical: https://oozou.com/til/use-host-to-get-more-information-about-domains-20
locale: ja
date: 2020-10-13
topic: shell
---

# `host` でドメインの詳細情報を取得する

> DNSサーバーからドメインのA/CNAME/MXなどのレコードを調べるのに dig を使っているかもしれません。しかし、手早く概要を知りたいだけなら host を使いましょう。

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

DNSサーバーからドメインのA/CNAME/MXなどのレコードを調べるのに *dig* を使っているかもしれません。しかし、手早く概要を知りたいだけなら *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/ja/contact

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