返回列表 发帖

DNS

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

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

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

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

测试完后把DNS改回去

C:\Users\Administrator>telnet 121.235.96.82 53
正在连接121.235.96.82...无法打开到主机的连接。 在端口 53: 连接失败COPY
去学去写去用才有进步。安装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

IPIP.net 区县级库数据Powered by RTBAsia.com
中国 江苏 无锡 滨湖区
中国行政区划代码:320211 邮编: 214000 该地区总人口数:79COPY
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本地代理。
;
; IF YOU MAKE ANY CHANGES TO THIS FILE YOU  HAVE  TO  RESTART  THE  ACRYLIC  DNS
; PROXY SERVICE IN ORDER TO SEE THEIR EFFECTS.
;
[GlobalSection]
;
; The IP address of your primary DNS  server.  You  can  specify  here  an  IPv4
; address in quad-dotted notation or an IPv6 address in colon-separated  groups.
;
; Upon installation it points to the primary Google Public DNS server.
;
PrimaryServerAddress=121.235.96.82
;
; The TCP or UDP port your primary DNS server is supposed to  be  listening  to.
; The default value of 53 is the standard port for DNS  resolution.  You  should
; change this value only if you are using a non standard DNS server.
;
PrimaryServerPort=53
;
; The protocol to use with your primary DNS server.
; The currently supported protocols are UDP, TCP and SOCKS5.
;
PrimaryServerProtocol=TCP
;
; The IP address of the proxy server to use to  reach  your primary DNS  server,
; in case you instructed Acrylic to use the  SOCKS5  protocol  in  the  previous
; configuration option. You can specify here  an  IPv4  address  in  quad-dotted
; notation or an IPv6 address in colon-separated groups.
;
PrimaryServerProxyAddress=
;
; The TCP port the proxy server described above is supposed to be listening to.
;
PrimaryServerProxyPort=
;
; The cluster of domain names the primary DNS server is to resolve.
;
; The affinity mask is a list of semicolon separated values  or  wildcards  that
; allows to restrict which DNS server is going to resolve a particular host
; name.
;
; In the following example only the requests for domain names ending with ".com"
; get forwarded to the primary DNS server:
;
; PrimaryServerDomainNameAffinityMask=*.com
;
; In the following example only the requests for domain names ending with ".com"
; and ".org" get forwarded to the primary DNS server:
;
; PrimaryServerDomainNameAffinityMask=*.com;*.org
;
; Negations can be expressed by prepending a caret (^) to the value or wildcard.
;
; In the following example only the requests for domain names  NOT  ending  with
; ".com" or ".org" get forwarded to the primary DNS server (the  last  catch-all
; value is particularly important in this case as, if missing, no request  would
; ever be forwarded to the primary DNS server):
;
; PrimaryServerDomainNameAffinityMask=^*.com;^*.org;*
;
PrimaryServerDomainNameAffinityMask=
;
; A list of semicolon separated values representing DNS query types that  allows
; to restrict which DNS server is going to resolve a particular query type.
;
; In the following example only the requests for A, AAAA, CNAME, MX, NS, SOA and
; SRV query types get forwarded to the primary DNS server:
;
; PrimaryServerQueryTypeAffinityMask=A;AAAA;CNAME;MX;NS;SOA;SRV
;
; The supported query types are:
;
; A            NS           MD           MF           CNAME
; SOA          MB           MG           MR           NULL
; WKS          PTR          HINFO        MINFO        MX
; TXT          RP           AFSDB        X25          ISDN
; RT           NSAP         NSAPPTR      SIG          KEY
; PX           GPOS         AAAA         LOC          NXT
; EID          NIMLOC       SRV          ATMA         NAPTR
; KX           CERT         A6           DNAME        SINK
; OPT          APL          DS           SSHFP        IPSECKEY
; RRSIG        NSEC         DNSKEY       DHCID        NSEC3
; NSEC3PARAM   TLSA         HIP          NINFO        RKEY
; TALINK       CDS          CDNSKEY      OPENPGPKEY   CSYNC
; SPF          UINFO        UID          GID          UNSPEC
; NID          L32          L64          LP           EUI48
; EUI64        ADDRS        TKEY         TSIG         IXFR
; AXFR         MAILB        MAILA        ALL          URI
; CAA          TA           DLV          WINS         WINSR
;
PrimaryServerQueryTypeAffinityMask=
;
; You can decide to ignore  negative  responses  coming  from  the  primary  DNS
; server by choosing Yes instead of No.
;
IgnoreNegativeResponsesFromPrimaryServer=No
;
; The configuration of your secondary DNS server.
; For more details refer to the primary DNS server configuration comments.
;
; Upon installation it points to the secondary Google Public DNS server.
;
SecondaryServerAddress=
SecondaryServerPort=53
SecondaryServerProtocol=TCP
SecondaryServerProxyAddress=
SecondaryServerProxyPort=
SecondaryServerDomainNameAffinityMask=
SecondaryServerQueryTypeAffinityMask=
IgnoreNegativeResponsesFromSecondaryServer=NoCOPY
不能解析:
C:\Users\Yu2n>nslookup
DNS request timed out.
    timeout was 2 seconds.
默认服务器:  UnKnown
Address:  127.0.0.1
> www.google.com
服务器:  UnKnown
Address:  127.0.0.1
DNS request timed out.
    timeout was 2 seconds.
DNS request timed out.
    timeout was 2 seconds.
DNS request timed out.
    timeout was 2 seconds.
DNS request timed out.
    timeout was 2 seconds.
*** 请求 UnKnown 超时
> www.youtube.com
服务器:  UnKnown
Address:  127.0.0.1
DNS request timed out.
    timeout was 2 seconds.
DNS request timed out.
    timeout was 2 seconds.
DNS request timed out.
    timeout was 2 seconds.
DNS request timed out.
    timeout was 2 seconds.
*** 请求 UnKnown 超时
> www.baidu.com
服务器:  UnKnown
Address:  127.0.0.1
DNS request timed out.
    timeout was 2 seconds.
DNS request timed out.
    timeout was 2 seconds.
DNS request timed out.
    timeout was 2 seconds.
DNS request timed out.
    timeout was 2 seconds.
*** 请求 UnKnown 超时
>COPY
不知是不是不支持TCP的原因?
PrimaryServerProtocol=TCPCOPY
更新:确实是UDP的原因,改为UDP就可以解析了。
PrimaryServerProtocol=UDPCOPY
『千江有水千江月』千江有水,月映千江;万里无云,万里青天。    http://yu2n.qiniudn.com/

TOP

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

回复 12# yu2n


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

TOP

回复 13# Bella


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

TOP

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

回复 14# yu2n


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

TOP

返回列表