How to test the primary DNS and backup DNS of a windows Host

Source: Internet
Author: User

I. Overview:

When listening to the course of yeslab QIN Ke's SecV3 SNF (ASA), the windows host will send a DNS request to the primary DNS and the standby DNS at the same time, so the building environment is ready for verification.

Ii. Basic test ideas and conclusions:

A. Basic Ideas:

① Configure primary DNS and backup DNS in the operating system

② When both the primary and backup DNS are available, issue a DNS query and capture packets

③ Manually stop the main DNS service and do not provide DNS queries. The PC sends DNS queries and captures packets.

④ Stop the primary DNS interface directly, send DNS queries on the PC, and capture packets

B. test conclusion:

① As a DNS client, the PC does not send queries to the primary DNS and the standby DNS at the same time. ② the DNS Client Always sends queries to the primary DNS first, the secondary DNS is available only when the primary DNS is unavailable.

Iii. Test topology:

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/0935061306-0.jpg "title =" tuopu. JPG "alt =" 224515851.jpg"/>

4. Basic Configuration:

A. PC:

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/09350B5L-1.jpg "title =" tuop2.JPG "alt =" 2246420.7.jpg"/>

B. R1:Interface FastEthernet0/0
Ip address 10.1.1.1 255.255.255.0
No shutip dns server
Ip host www.baidu.com 10.1.1.1
C. R2:Interface FastEthernet0/0
Ip address 10.1.1.2 255.255.255.0
No shutip dns server
Ip host www.baidu.com 10.1.1.2 5. Test procedure:
A. Both R1 and R2 serve as DNS servers and can provide DNS queries. The PC sends DNS queries:650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/0935062643-2.jpg "title =" 1.JPG" alt = "225103232.jpg"/>
--- From packet capture, we can see that when the main DNS is available, only the query package for the main DNS server is issued. B. R1 and R2 serve as DNS servers. Only R2 can provide DNS query records, and the PC sends DNS queries:R1 (config) # no ip host www.baidu.com 10.1.1.1650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/0935061592-3.jpg "title =" 2.JPG" alt = "225213279.jpg"/> --- capture packets, we can see that when the primary DNS cannot be queried, will find the backup DNS.
C. Only R2 is a real DNS server and can provide DNS queries. The PC sends DNS queries:R1 (config) # no ip dns server650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/09350A450-4.jpg "title =" 3.JPG" alt = "225521250.jpg"/> --- From packet capture we can see that when the primary DNS cannot provide DNS services, you will also find the backup DNS. D. the IP address of the primary DNS is a nonexistent IP address. The secondary DNS can provide services and the PC sends DNS queries: R1 (config) # int f0/0

R1 (config-if) # shutdown

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/0935064Y0-5.jpg "title =" 4.JPG" alt = "225751126.jpg"/>

--- From packet capture, we can see that when an arp request is sent to the primary server and no response is received, we will also find the backup DNS.

This article is from the "httpyuntianjxxll. spac..." blog, please be sure to keep this source http://333234.blog.51cto.com/323234/1302462

Related Article

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.