• nslookup基础用法


    简单介绍

    简单介绍如下:
    实例:查询163.com域名信息
    D:>nslookup
    Default Server: ns-px.online.sh.cn
    Address: 202.96.209.5
    当前的DNS服务器 ,可用server命令改变。
    设置查选条件为所有类型记录(A、MX等)
    查询域名,注意有.
    Server: ns-px.online.sh.cn
    Address: 202.96.209.5
    查询结果~~
    Non-authoritative answer:
    未证实回答,出现此提示表明该域名的注册主DNS非提交查询的DNS服务器
    163.com nameserver = NS.NEASE.NET
    163.com nameserver = NS2.NEASE.NET
    查询域名的名字服务器
    163.com
    primary name server = ns.163.com
    主要名字服务器
    responsible mail addr = admin.NEASE.NET
    联系人邮件地址admin@nease.net
    serial = 20010348
    区域传递序号,又叫文件版本,当发生区域复制时,该域用来指示区域信息的更新情况。
    refresh = 10800 (3 hours)
    重刷新时间,当区域复制发生时,指定区域复制的更新时间间隔
    retry = 3600 (1 hour)
    重试时间,区域复制失败时,重新尝试的时间
    expire = 360000 (4 days 4 hours)
    有效时间,区域复制在有效时间内不能完成,则终止更新
    default TTL = 3600 (1 hour)

    TTL设置

    被查询域名的资料
    163.com MX preference = 50, mail exchanger = m218.163.com
    163.com MX preference = 50, mail exchanger = m207.163.com
    163.com MX preference = 50, mail exchanger = m208.163.com
    163.com MX preference = 50, mail exchanger = m209.163.com
    163.com MX preference = 50, mail exchanger = m210.163.com
    163.com MX preference = 50, mail exchanger = m229.163.com
    163.com MX preference = 50, mail exchanger = m246.163.com
    163.com MX preference = 50, mail exchanger = m180.163.com
    163.com MX preference = 50, mail exchanger = m214.163.com
    163.com internet address = 202.106.185.77
    163.com nameserver = NS.NEASE.NET
    163.com nameserver = NS2.NEASE.NET
    NS.NEASE.NET internet address = 202.106.185.75
    NS2.NEASE.NET internet address = 61.145.113.57
    m218.163.com internet address = 202.108.44.218
    m207.163.com internet address = 202.108.44.207
    m208.163.com internet address = 202.108.44.208
    m209.163.com internet address = 202.108.44.209
    m210.163.com internet address = 202.108.44.210
    m229.163.com internet address = 202.108.44.229
    m246.163.com internet address = 202.108.44.246
    m180.163.com internet address = 202.108.44.180

    2被查询域名的满足条件记录编辑

    该命令的帮助(汉字部分为说明)
    Commands: (identifiers are shown in uppercase, [] means optional)
    命令,标记有[]为可选
    NAME - print info about the host/domain NAME using default server
    查询主机或域名,用缺省服务器
    NAME1 NAME2 - as above, but use NAME2 as server
    查询主机或域名,用NAME2做提交查询服务器
    help or ? - print info on common commands
    打印帮助信息
    set OPTION - set an option
    设置选项
    all - print options, current server and host
    打印当前选项和服务器
    [no]debug - print debugging information
    打印调试信息
    [no]d2 - print exhaustive debugging information
    打印详细的调试信息
    [no]defname - append domain name to each query
    在查询中增加域名
    [no]recurse - ask for recursive answer to query
    请求递归查询
    [no]search - use domain search list
    使用域名搜索列表
    [no]vc - always use a virtual circuit
    始终使用虚电路
    domain=NAME - set default domain name to NAME
    设置缺省域名
    srchlist=N1[/N2/.../N6] - set domain to N1 and search list to N1,N2, etc.
    设置域名列表搜索列表
    root=NAME - set root server to NAME
    设置根服务器
    retry=X - set number of retries to X
    设置重试次数
    timeout=X - set initial time-out interval to X seconds
    设置超时时间
    type=X - set query type (ex. A,ANY,CNAME,MX,NS,PTR,SOA,SRV)
    设置查询记录类型
    querytype=X - same as type
    与上同
    class=X - set query class (ex. IN (Internet), ANY)
    设置查询类
    [no]msxfr - use MS fast zone transfer
    使用快速区域传递
    ixfrver=X - current version to use in IXFR transfer request
    server NAME - set default server to NAME, using current default server
    lserver NAME - set default server to NAME, using initial server
    finger - finger the optional NAME at the current default host
    root - set current default server to the root
    ls [opt] DOMAIN [> FILE] - list addresses in DOMAIN (optional: output to FILE)
    -a - list canonical names and aliases
    -d - list all records
    -t TYPE - list records of the given type (e.g. A,CNAME,MX,NS,PTR etc.)
    view FILE - sort an ls output file and view it with pg
    exit - exit the program
  • 相关阅读:
    you don't have permission to access forbidden
    SQL优化之语句优化
    MySQL索引介绍
    com.jcraft.jsch.JSchException: java.io.FileNotFoundException: file:D:developmentideaProjectssalary-card argetsalary-card-0.0.1-SNAPSHOT.jar!BOOT-INFclasses!keystorelogin_id_rsa 资源未找到
    Java 原生日志 java.util.logging
    为什么volatile不能保证原子性?
    SpringCloud-微服务配置统一管理SpringCloud Config(七)
    SpringCloud-微服务网关ZUUL(六)
    SpringCloud-容错处理Hystrix熔断器(五)
    SpringCloud-声明式Rest调用Feign(四)
  • 原文地址:https://www.cnblogs.com/zheh/p/4039483.html
Copyright © 2020-2023  润新知