作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我已经在 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"
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"
% 192.168.1.33 ~
关于windows-7 - 如何在 Windows 7 中使用 MaraDNS 解析外部域名,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13411904/
我已经在 windows 7 机器上安装了 maradns,我已经配置了它,它可以处理内部请求,但不能处理外部请求 marac 文件 ipv4_bind_addresses = "127.0.0.1"
我是一名优秀的程序员,十分优秀!