Host Command--linux command to apply a large dictionary 729 commands interpretation

Source: Internet
Author: User
Tags domain name server nameserver

The content originates from the people's post and Telecommunications press "Linux command Application big dictionary"

tell 729 commands, 1935 examples

Learn about the Linux system's reference books, desk book, encountered the command or command not understand the options can be found

Strive to publish content every day


Host command

use the host command to perform DNS lookups for domain name resolution.

Command syntax:

Host [ option ] [ name ] [ server ]

The meanings of the options in the command are as follows is shown.

Table host command option meaning

Options

Meaning

-A

equivalent to-v-t any

-C

on the authoritative domain name server, compare the SOA Records

-L

list all hosts within a domain, using the AXFR

-R

Disable recursive processing

-T < ';

Specifies the type of query, which can be cname Ns" soa a PTR

-T

enabled TCP/IP mode

-V

Output details

-W

Specify to wait for a reply permanently

-W < duration >

Specify how long it takes to wait for a reply

-4

Use only IPv4 querying things

-6

Use only IPv6 querying things

-R < retry attempts >

Specify UDP Packet retry attempts

Example : Resolves a record rhel.sh.com in the sh.com zone.

[Email protected]~] #host rhel.sh.com

Rhel.sh.comhas address 192.168.0.2

Example : resolves PTR record 192.168.0.2 in the 0.168.192.in-addr.arpa zone.

[[Email protected]~]# host 192.168.0.2

2.0.168.192.in-addr.arpadomain name Pointer rhel.sh.com.

Example : Resolves SOA records in the sh.com zone .

[[Email protected]~]# host-t SOA sh.com

Sh.com Hassoa record rhel.sh.com. root.sh.com. 1268360234 10800 3600 604800 38400

Example : Resolves NS records in the sh.com zone .

[Email protected] linux~]# host-t NS sh.com

sh.com nameserver rhel.sh.com.

Example : Resolves MX records in the sh.com zone .

[Email protected] linux~]# host-t MX sh.com

Sh.com Mailis handled by ten mail.sh.com.

Example : Resolves all host records in the sh.com zone.

[Email protected] linux~]# host-l sh.com 192.168.0.2

Using Domainserver:

name:192.168.0.2

address:192.168.0.2#53

Aliases:

sh.com nameserver rhel.sh.com.

Rhel.sh.comhas address 192.168.0.2

Linux.sh.comhas address 192.168.0.5

Example : Resolves the details of A record in the sh.com zone.

[Email protected] linux~]# host-a rhel.sh.com

Trying "Rhel.sh.com"

;; ->>header<<-opcode:query, Status:noerror, id:44664

;; Flags:qraa Rd RA; Query:1, Answer:1, Authority:1, additional:0

;; Questionsection:

; rhel.sh.com. In any

;; Answersection:

rhel.sh.com. 38400 in A 192.168.0.2

;; Authoritysection:

sh.com. 38400 in NS rhel.sh.com.

Received 59bytes from 192.168.0.2#53 in 1 ms


This article is from the "airfish2000" blog, make sure to keep this source http://airfish2000.blog.51cto.com/10829608/1876816

Host Command--linux command to apply a large dictionary 729 commands interpretation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.