powered by Technology
RSS icon Email icon Bullet (black)
  • nslookup 解析域名的一点发现

     ========phanx.com=========
    Author:  phanx
    Updated: 2008-11-21
    =========================
     
    C:Documents and SettingsAdministrator>nslookup bbs.scu.edu.cn
    Server:  68.128.128.61.cq.cq.cta.net.cn
    Address:  61.128.128.68
    Non-authoritative answer:
    Name:    bbs.scu.edu.cn.huawei.com1
    Address:  219.153.42.248
    C:Documents and SettingsAdministrator>ping bbs.scu.edu.cn
    Pinging bbs.scu.edu.cn [125.69.85.16] with 32 bytes of data:
    Reply from 125.69.85.16: bytes=32 time=8ms TTL=54
    Reply from 125.69.85.16: bytes=32 time=8ms TTL=54
    Reply from 125.69.85.16: bytes=32 time=8ms TTL=54
    Reply from 125.69.85.16: bytes=32 time=8ms TTL=54
    Ping statistics for 125.69.85.16:
        Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
        Minimum = 8ms, Maximum = 8ms, Average = 8ms
    C:Documents and SettingsAdministrator>
     
    用nslookup解析的时候为什么会多出一个 huawei.com1的后缀呢?
    原来nslookup解析域名的时候会自动把domain附加在输入的名字后面
    在nslookup中用set all检查参数
    > set all
    Default Server:  68.128.128.61.cq.cq.cta.net.cn
    Address:  61.128.128.68
    Set options:
      nodebug
      defname
      search
      recurse
      nod2
      novc
      noignoretc
      port=53
      type=A
      class=IN
      timeout=2
      retry=1
      root=A.ROOT-SERVERS.NET.
      domain=huawei.com1
      MSxfr
      IXFRversion=1
      srchlist=huawei.com1
    >
    原来附加了一个huawei.com1
    修改一下set nosearch
    然后再解析就对了
     
    > bbs.scu.edu.cn
    Server:  68.128.128.61.cq.cq.cta.net.cn
    Address:  61.128.128.68
    Non-authoritative answer:
    Name:    bbs.scu.edu.cn
    Address:  125.69.85.16
    >