Linux bind-utils
First, Introduction
DNS is a service that resolves a domain name to an IP address. such as: www.turbolinux.com.cn through DNS resolution, you can get 210.77.38.126.
Bind is a DNS service program under a Linux system. Bind-utils is a set of DNS toolkits provided by Bind software, with some DNS-related tools. Mainly: Dig,host,nslookup, Nsupdate. Use these tools to perform domain name resolution and DNS debugging work.
Second, the installation of Bind-utils
1.yum mode installation
[email protected] ~]# Yum install bind-utils-y
[email protected] ~]# nslookup www.baidu.com
server:10.41.7.13
address:10.41.7.13#53
Non-authoritative Answer:
www.baidu.com canonical name = www.a.shifen.com.
Name:www.a.shifen.com
address:61.135.169.125
Name:www.a.shifen.com
address:61.135.169.121
[Email protected] ~]# host www.baidu.com
Www.baidu.com is a alias for www.a.shifen.com.
Www.a.shifen.com has address 61.135.169.121
Www.a.shifen.com has address 61.135.169.125
[Email protected] ~]# dig www.baidu.com
; <<>> DiG 9.8.2rc1-redhat-9.8.2-0.68.rc1.el6 <<>> www.baidu.com
;; Global options: +cmd
;; Got Answer:
;; ->>header<<-opcode:query, Status:noerror, id:50791
;; Flags:qr Rd RA; Query:1, Answer:3, authority:0, additional:0
;; QUESTION section:
; www.baidu.com. In A
;; ANSWER section:
Www.baidu.com. 1153 in CNAME www.a.shifen.com.
www.a.shifen.com. 257 in a 61.135.169.121
www.a.shifen.com. 257 in a 61.135.169.125
;; Query Time:4 msec
;; server:10.41.7.13#53 (10.41.7.13)
;; When:tue Jul 31 16:18:43 2018
;; MSG SIZE rcvd:90
Linux Bind-utils Package installation using