计算机网络wireshark实验dns,《计算机网络》实验课-Lab2_Wireshark_DNS.pdf

Wireshark Lab: DNS

Computer Networking: A Top-

th

Version: 2.0 down Approach, 4 edition.

© 2007 J.F. Kurose, K.W. Ross. All Rights Reserved

As described in Section 2.5 of the textbook, the Domain Name System (DNS) translates

hostnames to IP addresses, fulfilling a critical role in the Internet infrastructure. In this

lab, we’ll take a closer look at the client side of DNS. Recall that the client’s role in the

DNS is relatively simple – a client sends a query to its local DNS server, and receives a

response back. As shown in Figures 2.21 and 2.22 in the textbook, much can go on

“under the covers,” invisible to the DNS clients, as the hierarchical DNS servers

communicate with each other to either recursively or iteratively resolve the client’s DNS

query. From the DNS client’s standpoint, however, the protocol is quite simple – a query

is formulated to the local DNS server and a response is received from that server.

Before beginning this lab, you’ll probably want to review DNS by reading Section 2.5 of

the text. In particular, you may want to review the material on local DNS servers, DNS

caching, DNS records and messages, and the TYPE field in the DNS record.

1. nslookup

In this lab, we’ll make extensive use of the nslookup tool, which is available in most

Linux/Unix and Microsoft platforms today. To run nslookup in Linux/Unix, you just type

the nslookup command on the command line. To run it in Windows, open the Command

Prompt and run nslookup on the command line.

In it is most basic operation, nslookup tool allows the host running the tool to query any

specified DNS server for a DNS record. The queried DNS server can be a root DNS

server, a top-level-domain DNS server, an authoritative DN

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
计算机网络自顶向下和Wireshark实验Tracing DNS with Wireshark是一个很好的结合,让我来为你介绍。 首先,计算机网络自顶向下是一种从应用层开始分析计算机网络的方法。这种方法强调理解应用层协议,因为它们是用户直接与之交互的,而且它们的行为直接影响网络性能和可用性。这种方法认为,理解各种应用层协议是如何交互的,可以更全面地了解网络是如何工作的。 Wireshark是一款网络协议分析工具,可以用于分析网络流量,帮助用户理解网络行为。 现在,让我们来看一下如何使用Wireshark来追踪DNS(Domain Name System)的实验DNS是互联网的基础部分,它允许用户通过主机名(例如,“google.com”)查找对应的IP地址。当你在浏览器中输入一个网址时,你的设备就会向DNS发出一个请求,以获取该网址的IP地址。 使用Wireshark追踪DNS的方法如下: 1. **安装和配置Wireshark**:首先,确保你已经在你的设备上安装了Wireshark,并且已经配置好了网络接口。 2. **捕获网络流量**:使用Wireshark的过滤器功能,你可以捕获特定于DNS的流量。例如,你可以使用过滤器“dns”来捕获所有DNS流量。 3. **分析流量**:一旦你捕获了DNS流量,你可以使用Wireshark的详细信息来查看每个请求和响应的详细信息。这包括源和目标IP地址、查询类型(如A记录或CNAME)、响应状态码等。 4. **追踪特定活动**:如果你想追踪某个特定的活动,例如某个特定的主机名或IP地址,你可以使用Wireshark的过滤器功能来限制你的视图。 5. **记录和分析结果**:记录和分析你的结果可以帮助你理解DNS系统的运作方式,以及可能存在的任何问题。 通过这个实验,你将能够更深入地了解DNS系统是如何工作的,以及Wireshark如何帮助你分析和记录网络流量。这对于理解和解决网络问题,以及在开发、测试和故障排除中都非常有用。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值