2012-11-16 53 views
4

我已經安裝在Windows maradns 7的機器,我已經配置,更能夠處理內部請求,但沒有外部因素如何在Windows中使用MaraDNS解析外部域名7

預警機制文件

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

如何解決此問題。

回答

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" 

db.lan.txt

% 192.168.1.33 ~ 

正如你可以看到我用OpenDNS的服務器上,如果喲你仍然得到錯誤嘗試它們。 http://www.opendns.com/support/article/105

歡呼聲

+0

我認爲這不再有效 - 現在maradns帶有枯木dns遞歸服務器;所以上游服務器必須在那裏配置。 –

1

對於任何與此相伴以下,似乎當前的解決方案作爲MaraDNS的> 2.0是結合使用MaraDNS以及所包括的死木遞歸服務器能夠處理本地和外部分辨率。我可以通過以下配置在Windows 10機器上運行...

假設Windows計算機的IP地址是192.168.1.2

在MaraDNS mararc文件:

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

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

db.lan.txt文件:

% 192.168.1.XXX ~ 

而在戴德伍德dwood3rc.txt配置文件:

upstream_servers = {} 
upstream_servers["."]="8.8.8.8, 8.8.4.4" 
upstream_servers["mylocalnet.com."]="127.0.0.1" 

bind_address="192.168.1.2" 

recursive_acl = "127.0.0.1/16, 192.168.1.1/24" 

# By default, for security reasons, Deadwood does not allow IPs in the 
# 192.168.x.x, 172.[16-31].x.x, 10.x.x.x, 127.x.x.x, 169.254.x.x, 
# 224.x.x.x, or 0.0.x.x range. If using Deadwood to resolve names 
# on an internal network, uncomment the following line: 
filter_rfc1918 = 0 

你可能會設置多臺機器作爲獨立的服務器,但我上面的配置特別在於使我能夠在同一臺機器上運行兩臺服務器。您可以看到,在Deadwood配置中,我使用Google的DNS服務器處理所有上游請求,但mylocalnet.com.除外,該請求被轉發到本地主機並由MaraDNS處理。

從這裏,你只需要啓動這兩個程序和點DNS到192.168.1.2。應該很好走!