gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 21:29:41 25 4
gpt4 key购买 nike

我已经在 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

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

enter image description here

如何解决这个问题。

最佳答案

我遇到了同样的问题..通过用 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"

数据库.lan.txt
% 192.168.1.33 ~

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

干杯

关于windows-7 - 如何在 Windows 7 中使用 MaraDNS 解析外部域名,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13411904/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com