加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

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

发布时间:2020-12-14 03:58:42 所属栏目:Windows 来源:网络整理
导读:我在 windows 7机器上安装了maradns,我已经配置了它,它可以处理内部请求,但不能处理外部请求 marac文件 ipv4_bind_addresses = "127.0.0.1"timestamp_type = 2random_seed_file = "secret.txt"csv2 = {}csv2["myapp.com."] = "db.lan.txt"upstream_servers =
我在 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 Filesmaradns-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 Filesmaradns-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

干杯

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读