Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Linux basic command-host domain name query tool

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Host

Host is a commonly used DNS query tool, which is often used to query domain names and check whether domain name resolution is correct.

The scope of application of this command: RedHat, RHEL, Ubuntu, CentOS, Fedora.

1. Grammar

Host [options] name [server]

2. List of options

Option

Description

-a

Query all the information

-c

Set query type

-C

Query the complete SOA record

-d |-v

Show detailed procedures

-l

List mode

-t

Select query type: CNAME NS SOA SIG KEY AXFR

-w

Wait forever

-W

Set wait timeout

3. Examples

1) query domain name

[root@localhost ~] # host www.baidu.com / / query domain name information, display aliases and ip

Www.baidu.com is an alias for www.a.shifen.com.

Www.a.shifen.com has address 111.13.100.91

Www.a.shifen.com has address 111.13.100.92

2) query all information

[root@localhost ~] # host-a www.baidu.com / / query all the information of the domain name

Trying "www.baidu.com"

;;-> > HEADER

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report