我在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"
Run Code Online (Sandbox Code Playgroud)
db.lan.txt
private.% 192.168.1.21 ~
blog.% 192.168.1.16 ~
Run Code Online (Sandbox Code Playgroud)
对于外部请求,它给我以下错误
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:
Run Code Online (Sandbox Code Playgroud)
对于内部请求,其工作正常如下
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
Run Code Online (Sandbox Code Playgroud)
当我启动服务器时,我也会收到警告提示

如何解决此问题.
小智 5
我有同样的问题..修复它通过用版本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"
Run Code Online (Sandbox Code Playgroud)
db.lan.txt
% 192.168.1.33 ~
Run Code Online (Sandbox Code Playgroud)
正如您所看到的,我已经使用了openDNS服务器,如果您仍然遇到错误,请尝试使用它们. http://www.opendns.com/support/article/105
干杯
| 归档时间: |
|
| 查看次数: |
5023 次 |
| 最近记录: |