okampfer
V2EX  ›  Windows

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

  •  
  •   okampfer · Apr 27, 2016 · 3695 views
    This topic created in 3699 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
    spance
        1
    spance  
       Apr 27, 2016
    Slienc7
        2
    Slienc7  
       Apr 27, 2016 via Android
    Windows 有一个 DNS-Agent
    abelyao
        3
    abelyao  
       Apr 27, 2016
    DNSAgent 可满足需求, https://github.com/stackia/DNSAgent
    如果楼主也写 .net 的话也可以看看这个的代码,有许多值得参考的写法。
    作者貌似是 V2 上的 @jsq2627/t/177158
    okampfer
        4
    okampfer  
    OP
       Apr 27, 2016
    @abelyao @Slienc7 谢谢,我会在母上的 windows7 本本上试一下的。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3083 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 07:58 · PVG 15:58 · LAX 00:58 · JFK 03:58
    ♥ Do have faith in what you're doing.