Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3178183
  • 博文数量: 797
  • 博客积分: 10134
  • 博客等级: 上将
  • 技术积分: 9335
  • 用 户 组: 普通用户
  • 注册时间: 2006-06-22 22:57
个人简介

1

文章分类

全部博文(797)

文章存档

2022年(1)

2021年(2)

2017年(2)

2016年(1)

2015年(4)

2014年(1)

2013年(6)

2012年(6)

2011年(10)

2010年(26)

2009年(63)

2008年(61)

2007年(51)

2006年(563)

我的朋友

分类: 系统运维

2006-10-17 16:40:38

创建时间:2006-10-15 更新时间:2006-10-15
文章属性:转载
文章来源:internet
文章提交:root (webmaster_at_xfocus.org)

谁动了我们的DNS


2006-10-16
by 81d83889fb4a54b0d5d7e07d42c51422

本文遵从GPL协议,欢迎转载

|=------------------------------------------------------------------------=|

---------[ Table of Contents ]

  0x1   - 前言
  0x2   - 一些怪现象
    0x2.1   --    ping一些不存在的域名
    0x2.2   --    抓包分析
  0x3    - 浏览器浏览不存在域名被重定位
    0x3.1   --    现象
    0x3.2   --    抓包分析
  0x4    - xxxxxx.bobodogs.com的统计数据
  0x5    - 的统计数据
  0x6    - 一次被引导到3721网站的过程
  0x7    - 有必要看下这个网站
  0x8    - 小结
    0x8.1   --    影响用户范围
    0x8.2   --    解决办法

|=------------------------------------------------------------------------=|



---------[ 0x1 - 前言 ]


一两年前,访问网站的时候经常被重定位到北京宽带智能纠错网站去,比较烦人。
后来一段时间好象也没有了,也就没有注意了。这几天,访问网站的时候又经常出现
一些奇怪的现象。初步判断网络有点问题,当然我能确保我的系统是干净的。

使用环境 winxp sp2 firefox,北京网通ADSL拨号上网,使用DHCP自动分配IP和获得DNS,
不使用IE是因为IE自身也内嵌了3721查询,正确的说是内嵌了auto.search.msn.com.


关键字:DNS查询 ,HTTP协议,WHOIS 查询,DNS轮循



---------[ 0x2 - 一些怪现象 ]


这里就不重述DNS是如何工作的,以及DNS在整个互联网中的重要性。

---------[ 0x2.1 - ping一些不存在的域名 ]

先来看看一些现象:
======================================================================
ping fuck12334566.com

Pinging fuck12334566.com [202.108.251.209] with 32 bytes of data:

Reply from 202.108.251.209: bytes=32 time=17ms TTL=247
Reply from 202.108.251.209: bytes=32 time=16ms TTL=247

Ping statistics for 202.108.251.209:
    Packets: Sent = 2, Received = 2, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 16ms, Maximum = 17ms, Average = 16ms
Control-C
^C
ping fuck12334566.com

Pinging fuck12334566.com [202.108.251.209] with 32 bytes of data:

Reply from 202.108.251.209: bytes=32 time=15ms TTL=247

Ping statistics for 202.108.251.209:
    Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 15ms, Maximum = 15ms, Average = 15ms
Control-C
^C
ping fuck123345chinaunix.com

Pinging fuck123345chinaunix.com [202.108.251.209] with 32 bytes of data:

Reply from 202.108.251.209: bytes=32 time=17ms TTL=247

Ping statistics for 202.108.251.209:
    Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 17ms, Maximum = 17ms, Average = 17ms
Control-C
^C
ping fuck12334568.com

Pinging fuck12334568.com [202.108.251.207] with 32 bytes of data:

Reply from 202.108.251.207: bytes=32 time=18ms TTL=247
Reply from 202.108.251.207: bytes=32 time=17ms TTL=247

Ping statistics for 202.108.251.207:
    Packets: Sent = 2, Received = 2, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 17ms, Maximum = 18ms, Average = 17ms
Control-C
^C
ping fuck12334569.com

Pinging fuck12334569.com [202.108.251.209] with 32 bytes of data:

Reply from 202.108.251.209: bytes=32 time=16ms TTL=247

Ping statistics for 202.108.251.209:
    Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 16ms, Maximum = 16ms, Average = 16ms
Control-C
^C
ping fuck12334570.com

Pinging fuck12334570.com [202.108.251.206] with 32 bytes of data:

Reply from 202.108.251.206: bytes=32 time=16ms TTL=247

Ping statistics for 202.108.251.206:
    Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 16ms, Maximum = 16ms, Average = 16ms
Control-C
^C
ping fuck12334571.com

Pinging fuck12334571.com [202.108.251.209] with 32 bytes of data:

Reply from 202.108.251.209: bytes=32 time=17ms TTL=247

Ping statistics for 202.108.251.209:
    Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 17ms, Maximum = 17ms, Average = 17ms
Control-C
======================================================================

为什么会这样,明名胡乱打的一个域名为什么会返回一系列IP地址呢,是偶然
还是巧合?

dns服务器返回的一些ip地址
202.108.251.209
202.108.251.206
202.108.251.207
202.108.251.213

===============================================================
inetnum:      202.108.0.0 - 202.108.255.255
netname:      CNCGROUP-BJ
descr:        CNCGROUP Beijing province network
descr:        China Network Communications Group Corporation
descr:        No.156,Fu-Xing-Men-Nei Street,
descr:        Beijing 100031
country:      CN
admin-c:      CH455-AP
tech-c:       SY21-AP
mnt-by:       APNIC-HM
mnt-lower:    MAINT-CNCGROUP-BJ
mnt-routes:   MAINT-CNCGROUP-RR
changed:      hm-changed@apnic.net 20031017
status:       ALLOCATED PORTABLE
changed:      hm-changed@apnic.net 20060124
source:       APNIC

role:         CNCGroup Hostmaster
e-mail:       abuse@cnc-noc.net
address:      No.156,Fu-Xing-Men-Nei Street,
address:      Beijing,100031,P.R.China
nic-hdl:      CH455-AP
phone:        +86-10-82993155
fax-no:       +86-10-82993102
country:      CN
admin-c:      CH444-AP
tech-c:       CH444-AP
changed:      abuse@cnc-noc.net 20041119
mnt-by:       MAINT-CNCGROUP
source:       APNIC

person:       sun ying
address:      fu xing men nei da jie 97, Xicheng District
address:      Beijing 100800
country:      CN
phone:        +86-10-66030657
fax-no:       +86-10-66078815
e-mail:       suny@publicf.bta.net.cn
nic-hdl:      SY21-AP
mnt-by:       MAINT-CNCGROUP-BJ
changed:      suny@publicf.bta.net.cn 19980824
changed:      hm-changed@apnic.net 20060717
source:       APNIC

===============================================================


---------[ 0x2.2 - 抓包分析 ]

抓包分析下

===============================================================
Frame 3 (93 bytes on wire, 93 bytes captured)
Ethernet II, Src: Vmware_fc:4e:c4 (00:50:56:fc:4e:c4), Dst: Vmware_2b:e7:dd (00:0c:29:2b:e7:dd)
Internet Protocol, Src: 192.168.174.2 (192.168.174.2), Dst: 192.168.174.132 (192.168.174.132)
User Datagram Protocol, Src Port: domain (53), Dst Port: 1326 (1326)
Domain Name System (response)
    Transaction ID: 0xc627
    Flags: 0x8180 (Standard query response, No error)
    Questions: 1
    Answer RRs: 1
    Authority RRs: 0
    Additional RRs: 0
    Queries
        fuck123445452.com: type A, class IN
            Name: fuck123445452.com
            Type: A (Host address)
            Class: IN (0x0001)
    Answers
        fuck123445452.com: type A, class IN, addr 202.108.251.213
            Name: fuck123445452.com
            Type: A (Host address)
            Class: IN (0x0001)
            Time to live: 1 minute
            Data length: 4
            Addr: 202.108.251.213

===============================================================
很显然dns服务器告诉我们的就是:fuck123445452.com的ip地址为202.108.251.213



---------[ 0x3 - 浏览器浏览不存在域名被重定位 ]


---------[ 0x3.1 - 现象 ]


  再来看看http协议上的问题,我们用firefox敲了一个网址进去
(特意查了下,这个域名是还没有被人注册的) ,
结果返回回来的是
===============================================================
无法显示网页
您正在查找的页当前不可用。 网站可能遇到支持问题,或者您需要 调整您的浏览器
设置。

请尝试以下操作:

    * ·单击 refresh.gif (82 字节) 刷新按钮,或稍后重试。
    * ·如果您已经在地址栏中输入该网页的地址, 请确认其拼

==============================================================
是不是觉得奇怪呢,是的,不奇怪才怪了呢


---------[ 0x3.2 - 抓包分析 ]

抓包分析吧

firefox的动作

★ 第一步
  查询的ip地址,如上一样dns服务器返回
  202.108.251.215

★ 第二步
  2.1 向202.108.251.215发送GET / HTTP/1.1\r\n请求。
  2.2 202.108.251.215返回数据

===============================================================
Hypertext Transfer Protocol
Line-based text data: text/html
    
    
    
    
    
    
    
===============================================================

ok这里出现了bobodogs.com和jcdh.cn这两个网站。
看看这两个网站分别是什么
jcdh.cn是北京宽带网网站。(后补:是乍看是)
bobodogs.com是博博狗。
他们俩什么关系??

===============================================================
jcdh.cn whois 信息

Domain Name     jcdh.cn
Domain Status    ok
Registrant Name    吕先生
Administrative Email    dayu2008@163.com
Sponsoring Registrar    北京万网志成科技有限公司
Name Server    dns11.hichina.com
Name Server    dns12.hichina.com
Registration Date    2006-09-15 14:11
Expiration Date    2007-09-15 14:11

===============================================================
bobodogs whois 信息

   Domain Name: BOBODOGS.COM
   Registrar: HICHINA WEB SOLUTIONS (HONG KONG) LIMITED
   Whois Server: grs.hichina.com
   Referral URL:
   Name Server: DNS12.HICHINA.COM
   Name Server: DNS11.HICHINA.COM
   Status: ACTIVE
   EPP Status: ok
   Updated Date: 18-Jul-2006
   Creation Date: 18-Jul-2006
   Expiration Date: 18-Jul-2008

[grs.hichina.com]
Domain Name ..................... bobodogs.com
Name Server ..................... dns11.hichina.com
                                  dns12.hichina.com
Registrant ID ................... hc468722731-cn
Registrant Name ................. HAICHUAN LI
Registrant Organization ......... LI HAICHUAN
Registrant Address .............. BEIJING
Registrant City ................. BEIJING
Registrant Province/State ....... BEIJING
Registrant Postal Code .......... 100029
Registrant Country Code ......... CN
Registrant Phone Number ......... +86.01058208009 -
Registrant Fax .................. +86.01058208005 -
Registrant Email ................ ponyring@gmail.com
Administrative ID ............... hc468722731-cn
Administrative Name ............. HAICHUAN LI
Administrative Organization ..... LI HAICHUAN
Administrative Address .......... BEIJING
Administrative City ............. BEIJING
Administrative Province/State ... BEIJING
Administrative Postal Code ...... 100029
Administrative Country Code ..... CN
Administrative Phone Number ..... +86.01058208009 -
Administrative Fax .............. +86.01058208005 -
Administrative Email ............ ponyring@gmail.com
Billing ID ...................... hichina001-cn
Billing Name .................... hichina
Billing Organization ............ HiChina Web Solutions Limited
Billing Address ................. 3/F., HiChina Mansion
                                  No.27 Gulouwai Avenue
                                  Dongcheng District
Billing City .................... Beijing
Billing Province/State .......... Beijing
Billing Postal Code ............. 100011
Billing Country Code ............ CN
Billing Phone Number ............ +86.01064242299 -
Billing Fax ..................... +86.01064258796 -
Billing Email ................... domainadm@hichina.com
Technical ID .................... hichina001-cn
Technical Name .................. hichina
Technical Organization .......... HiChina Web Solutions Limited
Technical Address ............... 3/F., HiChina Mansion
                                  No.27 Gulouwai Avenue
                                  Dongcheng District
Technical City .................. Beijing
Technical Province/State ........ Beijing
Technical Postal Code ........... 100011
Technical Country Code .......... CN
Technical Phone Number .......... +86.01064242299 -
Technical Fax ................... +86.01064258796 -
Technical Email ................. domainadm@hichina.com
Expiration Date ................. 2008-07-18 06:21:34
===============================================================

  ★ 第三步:
  根据返回回来的数据,firefox继续访问 ,GET 1.html?url=
这次返回的数据如下:

===============================================================
Hypertext Transfer Protocol
Line-based text data: text/html
    
    
    
    
    
    
    

==============================================================
    直接重新导向本网站的/URLAsk

  
  ★ 第三步 访问61.51.18.112 的/URLAsk 返回的数据为
==============================================================
Hypertext Transfer Protocol
    HTTP/1.1 302 Moved Temporarily\r\n
    Location: \r\n
    Content-Length: 0\r\n
    Date: Fri, 13 Oct 2006 09:17:26 GMT\r\n
    Server: Apache-Coyote/1.1\r\n
    \r\n
==============================================================
    又重新导向auto.search.msn.com,auto.search.msn.com会使用3721的东西来搜索,返回给用户看到的
就是yahoo的3721网站搜索。到此,通过dns的引导,网站的配合,最终引导到yahoo的3721搜索网站。



---------[ 0x7 - 有必要看下这个网站 ]

下面是这个网站的首页面内容

==============================================================
北京宽带网-纠错导航
....

  
    

    
    
  
  

    
    
  
 温馨提示

      

      您输入的域名或网址无法访问!

      可能是输入错误,或是网站访问超时!
     我们为您真诚推荐以下精彩内容


  
    
      
      
        
      
    


          
            
          
        

    
      

        

          
            

              
                
...

==============================================================
我们看到
  最上面的title是显示的北京宽带网-纠错导航,
  左上角使用的北京-宽带网-BNN的logo,还有“温馨提示:您输入的域名或网址无法访问!
      可能是输入错误,或是网站访问超时”,
  左下角是一个error.html页面 , ,显示
      无法显示网页,模拟的是 Internet Explorer 找不到服务器或 DNS 错误 的错误。
      (我可是用的是firefox啊)
  右边是连接到的内容。



---------[ 0x8 - 小结 ]

  
  本文是一篇技术文章,不想多说什么了......
  
  
  网上类试的文章

  是谁控制了我们的浏览器?
  

---------[ 0x8.1 - 影响用户范围 ]
  
  从51.la的统计上来看,影响的是北京网通的ADSL拨号用户


---------[ 0x8.2 - 解决办法 ]

  假如你比较厌烦这个东西的话,不要设置自动获得DNS服务器地址,自己手动添写非网通的DNS服务器。
  比如北京电信的 202.96.199.133  202.96.0.133  202.106.0.20  202.106.148.1  202.97.16.195    


---------EOF
阅读(2426) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~

                  
                    
                    

                    
                    
                    
                    
                    
                  
                  
                
 焦点