zoukankan      html  css  js  c++  java
  • DNS测试工具的使用(了解)

    • dig命令, host命令, nslookup命令,rndc命令
    • dig命令(直接测试DNS性能,不会查询/etc/hosts文件)
      • dig [-t RR_TYPE] name [@SERVER] [query options] 如果[@SERVER]不写,那就使用本地指定的dns服务器,如果指定了就不会读本地的dns服务器
        • 其中 [query options]为查询选项,可以使用
          • +[no]trace :跟踪解析过程
            • dig -t A www.baidu.com +trace
          • +[no]recurse:进行递归解析
            • dig -t A www.baidu.com +recurse
          • 用于测试dns系统,因此其不会查询hosts文件
            • 注意反向解析使用: dig -x ip
              • dig -x 115.239.210.176
            • 模拟区域传送
              • dig -t axfr DOMAIN [@SERVER]
    • host命令:直接返回解析结果
      • host [-t RR_TYPE] name SERVER_IP
      • host -t A www.baidu.com
      • host -t NS baidu.com
      • host -t MX baidu.com
    • nslookup命令
      • nslookup [ -options ] [ name ] [server]
    [root@nds1 etc]# nslookup
    > server 192.168.23.10
    Default server: 192.168.23.10
    Address: 192.168.23.10#53
    > set q=A
    > www.sina.com
    Server: 192.168.23.10
    Address: 192.168.23.10#53

    Non-authoritative answer:
    www.sina.com canonical name = us.sina.com.cn.
    us.sina.com.cn canonical name = spool.grid.sinaedge.com.
    Name: spool.grid.sinaedge.com
    Address: 222.76.214.60
    • rndc命令:用于named服务控制命令
      • rndc status :查看状态
      • rndc flush :清空缓存服务器缓存
     
  • 相关阅读:
    RabbitMQ知识梳理
    feign.FeignException: status 400 reading
    rabbitmq监控之消息确认ack
    Docker 安装redis mysql rabbitmq
    linux搭建GitLab
    杀死服务进程并重新启动,同时监听日志打印
    MySQL数据库连接报错
    idea: unable to import maven project
    线程池ThreadPool实战
    【2-SAT】URAL
  • 原文地址:https://www.cnblogs.com/liu1026/p/7435720.html
Copyright © 2011-2022 走看看