okampfer
V2EX  ›  Windows

如何在 windows 上实现特定域名走特定的 dns server?

  •  
  •   okampfer · Apr 27, 2016 · 4027 views
    This topic created in 3843 days ago, the information mentioned may be changed or developed.

    在 ubuntu 上,可以通过/etc/NetworkManager/dnsmasq.d/custom-dns文件来实现,比如,文件内容为:

    server=/plus.google.com/8.8.4.4
    

    含义为plus.google.com这个域名会用8.8.4.4这个 dns server 来解析。

    那么在 windows(7/8)上如何实现这一功能呢?

    4 replies  •  2016-04-27 22:09:58 +08:00
    Slienc7
    Slienc7
    Apr 27, 2016 via Android
    2
    Windows 有一个 DNS-Agent
    abelyao
    abelyao
    Apr 27, 2016
    3
    DNSAgent 可满足需求, https://github.com/stackia/DNSAgent
    如果楼主也写 .net 的话也可以看看这个的代码,有许多值得参考的写法。
    作者貌似是 V2 上的 @jsq2627 ( /t/177158 )
    okampfer
    okampfer
    OP
    Apr 27, 2016
    4
    @abelyao @Slienc7 谢谢,我会在母上的 windows7 本本上试一下的。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2001 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 16:32 · PVG 00:32 · LAX 08:32 · JFK 11:32
    ♥ Do have faith in what you're doing.