微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

windows-7 – 如何在Windows 7中使用MaraDNS解析外部域名

我在 windows 7机器上安装了maradns,我已经配置了它,它可以处理内部请求,但不能处理外部请求

marac文件

ipv4_bind_addresses = "127.0.0.1"
timestamp_type = 2
random_seed_file = "secret.txt"

csv2 = {}
csv2["myapp.com."] = "db.lan.txt"

upstream_servers = {} # Initialize dictionary variable
upstream_servers["."] = "8.8.8.8,8.8.4.4"

db.lan.txt

private.%       192.168.1.21 ~
blog.%          192.168.1.16 ~

对于外部请求,它给我以下错误

C:\Program Files\maradns-2-0-06-win32>askmara.exe Agoogle.com.
# Querying the server with the IP 127.0.0.1
# Remote Server said: REFUSED
# NS replies:
# AR replies:

对于内部请求,其工作正常如下

C:\Program Files\maradns-2-0-06-win32>askmara.exe Aprivate.myapp.com.
# Querying the server with the IP 127.0.0.1
# Question: Aprivate.myapp.com.
private.myapp.com. +86400 a 192.168.1.21
# NS replies:
#myapp.com. +86400 ns synth-ip-7f000001.myapp.com.
# AR replies:
#synth-ip-7f000001.myapp.com. +86400 a 127.0.0.1

当我启动服务器时,我也会收到警告提示

如何解决此问题.

解决方法

我有同样的问题..通过用版本1.4替换最新版本修复它..
之后我唯一能做的就是运行mkSecretTxt.exe来创建secret.txt文件并配置mararc文件,如下所示:

这是我目前的mararc文件

# Win32-specific MaraRC file; this makes a basic recursive DNS
# server.

hide_disclaimer = "YES"
ipv4_bind_addresses = "127.0.0.1"
recursive_acl = "127.0.0.1/8"
timestamp_type = 2

csv2 = {}
csv2["local.com."] = "db.lan.txt"

# This is insecure until the secret.txt file is edited
random_seed_file = "secret.txt"

upstream_servers = {}
upstream_servers["."] = "208.67.222.222,208.67.220.220"

db.lan.txt

% 192.168.1.33 ~

正如您所看到的,我已经使用了openDNS服务器,如果您仍然遇到错误,请尝试使用它们.
http://www.opendns.com/support/article/105

干杯

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐