補覺鳴詩

學海無涯


  • 首頁

  • archive

  • 關於我

  • 搜尋

MaraDNS 小型 open-source DNS server

時間: 2020-01-31   |   分類: 網管   | 字數: 314 字 | 閱讀: 1分鐘 | 閱讀次數:

MaraDNS  https://maradns.samiam.org/index.html

簡介

MaraDNS 是一款 open-source 、免費的 DNS server

優點

  • 支援 windows 、 UNIX like
  • 小型
  • 輕量
  • 簡單使用
  • 安全

 

MaraDNS 下載

下載後 MaraDNS 分成三個部分

MaraDNS – DNS server

askmara – DNS queries (可供你測試)

Deadwood – DNS recursive

 

開始使用

執行 mkSecretTxt.exe

產生 secret.txt

使用記事本編輯 mararc 檔案進行 MaraDNS server 設定

新增 DNS domain

 

範例

mararc 檔案

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



## 新增網域 local.com 設定檔 local.com.txt
csv2 = {}
csv2["local.com."] = "local.com.txt"

新增一個 local.com.txt 檔案

# 新增 A Name
# % -> 帶入網域  esx1.% = esx1.local.com
esx1.%        192.168.43.11 ~

# The format of a Domain Zone file
#	example.com.      NS    ns1.example.com. ~
#	ns1.example.com.        10.10.10.19 ~
#	example.com.            10.10.10.19 ~
#	www.example.com.        10.10.10.19 ~
#	example.com.      MX 10 mail1.example.com. ~
#	mail1.example.com.      10.10.10.19 ~
#		Translated into English, the above lines say:
#		One name server for example.com is called ns1.example.com.
#		The IP for ns1.example.com is 10.10.10.19
#		The IP for example.com (in other words, the machine a web browser should hit if one selects http://example.com/) is 10.10.10.19
#		The IP for www.example.com is 10.10.10.19
#		The name of the machine which processes incoming mail, which has a priority of ten (lower priority numbers are more important), is called mail1.example.com.
#		The IP for mail1.example.com is 10.10.10.19
#
# 更多細節請參考文件 https://maradns.samiam.org/tutorial/man.csv2.html

 

測試

啟動 CMD 

nslookup
> server 127.0.0.1
預設伺服器:  [127.0.0.1]
Address:  127.0.0.1


> esx1.local.com
伺服器:  [192.168.43.206]
Address:  192.168.43.206

名稱:    esx1.local.com
Address:  192.168.43.11

 

comments powered by Disqus >
Owan

Owan

愛貓如癡

131 日誌
29 分類
37 標籤
GitHub
© 2010 - 2022 補覺鳴詩
Powered by - Hugo v0.96.0 / Theme by - NexT
0%