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

Commands for verifying DNS

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

Share

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

Command to verify DNS

test environment

Domain Name Server: dns3sv.te 192.168.1.65

Data Server 1: bsdb1.te 192.168.15.1

Data Server 2: bsdb2.te 192.168.15.2

DNS verification commands include host,nslookup,dig,ping, etc.

1. host command

[root@dns3sv named]# host dns3sv.te

dns3sv.te has address 192.168.1.65

[root@dns3sv named]# host 192.168.1.65

65.1.168.192.in-addr.arpa domain name pointer dns3sv.te.

[root@dns3sv named]# host bsdb1.te

bsdb1.te has address 192.168.15.1

[root@dns3sv named]# host 192.168.15.2

2.15.168.192.in-addr.arpa domain name pointer bsdb2.te.

2. nslookup command

[root@dns3sv ~]# nslookup zsdb1.te

Server: 192.168.1.65

Address: 192.168.1.65#53

Name: zsdb1.te

Address: 192.168.15.5

[root@dns3sv ~]# nslookup zsdb1.ab

Server: 192.168.1.65

Address: 192.168.1.65#53

** server can't find zsdb1.ab: REFUSED

3. dig command

[root@dns3sv ~]# dig zsdb2.te

; DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6 zsdb2.te

;; global options: +cmd

;; Got answer:

;; ->>HEADERHEADER

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