zoukankan      html  css  js  c++  java
  • 计算机网络实验之Wireshark_DNS


    我就不写杂七杂八的东西直接开始操作了

    实验之前

    做实验之前,清除 Windows 的 DNS 缓存

    image-20211014161041586

    实验步骤

    1. 运行 nslookup 以获取一个亚洲的 Web 服务器的 IP 地址。该服务器的 IP 地址
      是什么?

    image-20211014161020349

    前两排是公共DNS的hostname和IP address

    非权威应答指通过迭代的方式一级级查询分层的DNS服务器体系, 不是直接访问它的权威DNS

    分别为IPV6和IPV4的地址

    1. 运行 nslookup 来确定一个欧洲的大学的权威 DNS 服务器

    image-20211014161523389

    使用nslookup -types=NS (域名服务器记录Name Server,返回保存下一级域名信息的服务器地址)

    查询最接近MIT.edu的DNS服务器(权威服务器,是官方进行hostname与IP地址转换的永久存储,不需要缓存)

    非权威应答, 查询权威DSN服务器也是通过递归查询一级一级得到的,因此是非权威(不直接得到)

    通过 NS 查询一级域名(不含 www)和二级域名(含 www)的结果不一样

    image-20211014162025285

    1. 运行 nslookup,使用问题 2 中一个已获得的 DNS 服务器,来查询 Yahoo!邮箱
      的邮件服务器。它的 IP 地址是什么?

    image-20211014162228968

    1. Locate the DNS query and response messages. Are then sent over UDP or TCP?

    image-20211014162446510

    很明显,UDP

    1. What is the destination port for the DNS query message? What is the source port
      of DNS response message?

    都是port number:53

    查询:image-20211014162623779

    响应:

    image-20211014162657728

    1. To what IP address is the DNS query message sent? Use ipconfig to determine the
      IP address of your local DNS server. Are these two IP addresses the same?

    DNS查询的是公共DNS服务器不是本地的服务器 这里的地址是114.114.114.114 public1.114dns.com

    本地DNS服务器:

    image-20211014163352786
    貌似这里是一样的

    1. Examine the DNS query message. What “Type” of DNS query is it? Does the
      query message contain any “answers”?
      类型是 type=A,查询请求的IP地址,查询消息不包含任何返回的结果image-20211014163733278

    2. Examine the DNS response message. How many “answers” are provided? What do each of these answers contain?

    意思是有4个answer1个queriesimage-20211014164112096
    9. Consider the subsequent TCP SYN packet sent by your host. Does the destination
    IP address of the SYN packet correspond to any of the IP addresses provided in
    the DNS response message?

    a这题不太好做,你看上面它给的都是IPV6的地址
    
    ![image-20211014164943701](https://img-blog.csdnimg.cn/img_convert/51e74295556b69e76df51d91b380d814.png)
    
    1. This web page contains images. Before retrieving each image, does your host
      issue new DNS queries?
    a先看本地有没有缓存,有就直接用,没有在查询
    
    1. What is the destination port for the DNS query message? What is the source port
      of DNS response message?
    a 两个端口还是53
    
    1. To what IP address is the DNS query message sent? Is this the IP address of your
      default local DNS server?
      a先是电脑指定的公共DNS服务器,不是本地

    2. Examine the DNS query message. What “Type” of DNS query is it? Does the
      query message contain any “answers”?
      TYPE = A(IPV4),TYPW=AAAA(IPV6) 查询是不包括任何答案

    3. Examine the DNS response message. How many “answers” are provided? What
      do each of these answers contain?
      a好像和上面重复了,就不管了

    4. Provide a screenshot.
      a
      Now repeat the previous experiment, but instead issue the command:

    nslookup –type=NS mit.edu

    Answer the following questions 5 : 貌似下面几题都是研究权威DNS服务器的

    1. To what IP address is the DNS query message sent? Is this the IP address of your
      default local DNS server?

    a
    17. Examine the DNS query message. What “Type” of DNS query is it? Does the
    query message contain any “answers”?

    a这里类型是CNAME 权威域名的别名image-20211014165611294
    18. Examine the DNS response message. What MIT nameservers does the response
    message provide? Does this response message also provide the IP addresses of the
    MIT namesers?

    a直接给域名不提供IP地址image-20211014165611294
    19. Provide a screenshot.

    Now repeat the previous experiment, but instead issue the command:

    nslookup www.aiit.or.kr bitsy.mit.edu 本题地址已经弃用

    Answer the following questions 6 :

    1. To what IP address is the DNS query message sent? Is this the IP address of your
      default local DNS server? If not, what does the IP address correspond to?

    a
    21. Examine the DNS query message. What “Type” of DNS query is it? Does the
    query message contain any “answers”?

    a
    22. Examine the DNS response message. How many “answers” are provided? What
    does each of these answers contain?

    a
    23. Provide a screenshot.

    1. Examine the DNS response message. How many “answers” are provided? What
      does each of these answers contain?

    a
    23. Provide a screenshot.

    a

  • 相关阅读:
    [转][Silverlight] aspx页面上传递参数给Silverlight插件的方法
    [C#] 利用cmd远程网内机器,实现文件互传
    [CSS] 对于一个连在一起很长的字符串,在页面上控制换行
    [CSS] 设置input和img在同一行上
    [MySQL] 记MySQL与MS SQL的几点不同
    [JQuery] 利用jquery的ajax调用后台的WebService公共方法和网页的静态方法
    【计算机组成原理】——计算机发展简史
    【计算机组成原理】——计算机的分类
    【JavaScript高级程序设计4th】第1章 什么是JavaScript——总结
    css重置样式表(两种版本)
  • 原文地址:https://www.cnblogs.com/most-silence/p/15495336.html
Copyright © 2011-2022 走看看