[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖

DNS

本帖最后由 Bella 于 2016-7-25 15:08 编辑

我没有办法测试, 应该可行

把你们的DNS改成我的本机IP(已失效)

然后打开:
https://www.google.com/ncr
https://www.youtube.com
注意: youtube图片和评论可以加载, 视频必须走代#理

测试完后把DNS改回去

  1. C:\Users\Administrator>telnet 121.235.96.82 53
  2. 正在连接121.235.96.82...无法打开到主机的连接。 在端口 53: 连接失败
复制代码
去学去写去用才有进步。安装python3代码存为xx.py 双击运行或右键用IDLE打开按F5运行

TOP

本帖最后由 Bella 于 2016-7-23 20:09 编辑

回复 2# codegay


    改了参数, 你再试下

TOP

已测,可行
1

评分人数

    • Bella: 感谢分享技术 + 1

TOP

回复 4# pcl_test


    原来下午的广州IP是你

TOP

卧槽,撸主在国外?
1

评分人数

    • Bella: 严禁灌水技术 + 1

TOP

  1. IPIP.net 区县级库数据Powered by RTBAsia.com
  2. 中国 江苏 无锡 滨湖区
  3. 中国行政区划代码:320211 邮编: 214000 该地区总人口数:79万
复制代码
1

评分人数

    • Bella: 感谢分享技术 + 1
去学去写去用才有进步。安装python3代码存为xx.py 双击运行或右键用IDLE打开按F5运行

TOP

怎么实现的,求科普

TOP

本帖最后由 Bella 于 2016-7-23 21:52 编辑

回复 8# CrLf


    unbound, 文档基本没看懂

TOP

测试了一下,好像不支持 Acrylic DNS Proxy?
『千江有水千江月』千江有水,月映千江;万里无云,万里青天。    http://yu2n.qiniudn.com/

TOP

回复 10# yu2n


    是什么不支持? acrylic好像是给本机用的

TOP

本帖最后由 yu2n 于 2016-7-23 22:54 编辑

回复 11# Bella


    是啊,DNS本地代理。
  1. ;
  2. ; IF YOU MAKE ANY CHANGES TO THIS FILE YOU  HAVE  TO  RESTART  THE  ACRYLIC  DNS
  3. ; PROXY SERVICE IN ORDER TO SEE THEIR EFFECTS.
  4. ;
  5. [GlobalSection]
  6. ;
  7. ; The IP address of your primary DNS  server.  You  can  specify  here  an  IPv4
  8. ; address in quad-dotted notation or an IPv6 address in colon-separated  groups.
  9. ;
  10. ; Upon installation it points to the primary Google Public DNS server.
  11. ;
  12. PrimaryServerAddress=121.235.96.82
  13. ;
  14. ; The TCP or UDP port your primary DNS server is supposed to  be  listening  to.
  15. ; The default value of 53 is the standard port for DNS  resolution.  You  should
  16. ; change this value only if you are using a non standard DNS server.
  17. ;
  18. PrimaryServerPort=53
  19. ;
  20. ; The protocol to use with your primary DNS server.
  21. ; The currently supported protocols are UDP, TCP and SOCKS5.
  22. ;
  23. PrimaryServerProtocol=TCP
  24. ;
  25. ; The IP address of the proxy server to use to  reach  your primary DNS  server,
  26. ; in case you instructed Acrylic to use the  SOCKS5  protocol  in  the  previous
  27. ; configuration option. You can specify here  an  IPv4  address  in  quad-dotted
  28. ; notation or an IPv6 address in colon-separated groups.
  29. ;
  30. PrimaryServerProxyAddress=
  31. ;
  32. ; The TCP port the proxy server described above is supposed to be listening to.
  33. ;
  34. PrimaryServerProxyPort=
  35. ;
  36. ; The cluster of domain names the primary DNS server is to resolve.
  37. ;
  38. ; The affinity mask is a list of semicolon separated values  or  wildcards  that
  39. ; allows to restrict which DNS server is going to resolve a particular host
  40. ; name.
  41. ;
  42. ; In the following example only the requests for domain names ending with ".com"
  43. ; get forwarded to the primary DNS server:
  44. ;
  45. ; PrimaryServerDomainNameAffinityMask=*.com
  46. ;
  47. ; In the following example only the requests for domain names ending with ".com"
  48. ; and ".org" get forwarded to the primary DNS server:
  49. ;
  50. ; PrimaryServerDomainNameAffinityMask=*.com;*.org
  51. ;
  52. ; Negations can be expressed by prepending a caret (^) to the value or wildcard.
  53. ;
  54. ; In the following example only the requests for domain names  NOT  ending  with
  55. ; ".com" or ".org" get forwarded to the primary DNS server (the  last  catch-all
  56. ; value is particularly important in this case as, if missing, no request  would
  57. ; ever be forwarded to the primary DNS server):
  58. ;
  59. ; PrimaryServerDomainNameAffinityMask=^*.com;^*.org;*
  60. ;
  61. PrimaryServerDomainNameAffinityMask=
  62. ;
  63. ; A list of semicolon separated values representing DNS query types that  allows
  64. ; to restrict which DNS server is going to resolve a particular query type.
  65. ;
  66. ; In the following example only the requests for A, AAAA, CNAME, MX, NS, SOA and
  67. ; SRV query types get forwarded to the primary DNS server:
  68. ;
  69. ; PrimaryServerQueryTypeAffinityMask=A;AAAA;CNAME;MX;NS;SOA;SRV
  70. ;
  71. ; The supported query types are:
  72. ;
  73. ; A            NS           MD           MF           CNAME
  74. ; SOA          MB           MG           MR           NULL
  75. ; WKS          PTR          HINFO        MINFO        MX
  76. ; TXT          RP           AFSDB        X25          ISDN
  77. ; RT           NSAP         NSAPPTR      SIG          KEY
  78. ; PX           GPOS         AAAA         LOC          NXT
  79. ; EID          NIMLOC       SRV          ATMA         NAPTR
  80. ; KX           CERT         A6           DNAME        SINK
  81. ; OPT          APL          DS           SSHFP        IPSECKEY
  82. ; RRSIG        NSEC         DNSKEY       DHCID        NSEC3
  83. ; NSEC3PARAM   TLSA         HIP          NINFO        RKEY
  84. ; TALINK       CDS          CDNSKEY      OPENPGPKEY   CSYNC
  85. ; SPF          UINFO        UID          GID          UNSPEC
  86. ; NID          L32          L64          LP           EUI48
  87. ; EUI64        ADDRS        TKEY         TSIG         IXFR
  88. ; AXFR         MAILB        MAILA        ALL          URI
  89. ; CAA          TA           DLV          WINS         WINSR
  90. ;
  91. PrimaryServerQueryTypeAffinityMask=
  92. ;
  93. ; You can decide to ignore  negative  responses  coming  from  the  primary  DNS
  94. ; server by choosing Yes instead of No.
  95. ;
  96. IgnoreNegativeResponsesFromPrimaryServer=No
  97. ;
  98. ; The configuration of your secondary DNS server.
  99. ; For more details refer to the primary DNS server configuration comments.
  100. ;
  101. ; Upon installation it points to the secondary Google Public DNS server.
  102. ;
  103. SecondaryServerAddress=
  104. SecondaryServerPort=53
  105. SecondaryServerProtocol=TCP
  106. SecondaryServerProxyAddress=
  107. SecondaryServerProxyPort=
  108. SecondaryServerDomainNameAffinityMask=
  109. SecondaryServerQueryTypeAffinityMask=
  110. IgnoreNegativeResponsesFromSecondaryServer=No
复制代码
不能解析:
  1. C:\Users\Yu2n>nslookup
  2. DNS request timed out.
  3.     timeout was 2 seconds.
  4. 默认服务器:  UnKnown
  5. Address:  127.0.0.1
  6. > www.google.com
  7. 服务器:  UnKnown
  8. Address:  127.0.0.1
  9. DNS request timed out.
  10.     timeout was 2 seconds.
  11. DNS request timed out.
  12.     timeout was 2 seconds.
  13. DNS request timed out.
  14.     timeout was 2 seconds.
  15. DNS request timed out.
  16.     timeout was 2 seconds.
  17. *** 请求 UnKnown 超时
  18. > www.youtube.com
  19. 服务器:  UnKnown
  20. Address:  127.0.0.1
  21. DNS request timed out.
  22.     timeout was 2 seconds.
  23. DNS request timed out.
  24.     timeout was 2 seconds.
  25. DNS request timed out.
  26.     timeout was 2 seconds.
  27. DNS request timed out.
  28.     timeout was 2 seconds.
  29. *** 请求 UnKnown 超时
  30. > www.baidu.com
  31. 服务器:  UnKnown
  32. Address:  127.0.0.1
  33. DNS request timed out.
  34.     timeout was 2 seconds.
  35. DNS request timed out.
  36.     timeout was 2 seconds.
  37. DNS request timed out.
  38.     timeout was 2 seconds.
  39. DNS request timed out.
  40.     timeout was 2 seconds.
  41. *** 请求 UnKnown 超时
  42. >
复制代码
不知是不是不支持TCP的原因?
  1. PrimaryServerProtocol=TCP
复制代码
更新:确实是UDP的原因,改为UDP就可以解析了。
  1. PrimaryServerProtocol=UDP
复制代码
『千江有水千江月』千江有水,月映千江;万里无云,万里青天。    http://yu2n.qiniudn.com/

TOP

本帖最后由 Bella 于 2016-7-23 23:07 编辑

回复 12# yu2n


    tcp/udp我都开了, 又加了2个参数, 你测试下

TOP

回复 13# Bella


    该软件在TCP模式无法解析:
  1. C:\Users\Yu2n>nslookup
  2. DNS request timed out.
  3.     timeout was 2 seconds.
  4. 默认服务器:  UnKnown
  5. Address:  127.0.0.1
  6. > www.baidu.com
  7. 服务器:  UnKnown
  8. Address:  127.0.0.1
  9. DNS request timed out.
  10.     timeout was 2 seconds.
  11. DNS request timed out.
  12.     timeout was 2 seconds.
  13. DNS request timed out.
  14.     timeout was 2 seconds.
  15. DNS request timed out.
  16.     timeout was 2 seconds.
  17. *** 请求 UnKnown 超时
  18. >
复制代码
  1. ;
  2. ; IF YOU MAKE ANY CHANGES TO THIS FILE YOU  HAVE  TO  RESTART  THE  ACRYLIC  DNS
  3. ; PROXY SERVICE IN ORDER TO SEE THEIR EFFECTS.
  4. ;
  5. [GlobalSection]
  6. ;
  7. ; The IP address of your primary DNS  server.  You  can  specify  here  an  IPv4
  8. ; address in quad-dotted notation or an IPv6 address in colon-separated  groups.
  9. ;
  10. ; Upon installation it points to the primary Google Public DNS server.
  11. ;
  12. PrimaryServerAddress=121.235.96.82
  13. ;
  14. ; The TCP or UDP port your primary DNS server is supposed to  be  listening  to.
  15. ; The default value of 53 is the standard port for DNS  resolution.  You  should
  16. ; change this value only if you are using a non standard DNS server.
  17. ;
  18. PrimaryServerPort=53
  19. ;
  20. ; The protocol to use with your primary DNS server.
  21. ; The currently supported protocols are UDP, TCP and SOCKS5.
  22. ;
  23. PrimaryServerProtocol=TCP
复制代码
『千江有水千江月』千江有水,月映千江;万里无云,万里青天。    http://yu2n.qiniudn.com/

TOP

本帖最后由 Bella 于 2016-11-3 21:03 编辑

回复 14# yu2n


   unbound 支持下游 tcp 查询, 设置略复杂, 不好测试了

TOP

返回列表