iT邦幫忙

0

MaraDNS 小型 open-source DNS server

  • 分享至 

  • xImage
  •  

文章同步發表自:
https://nevertired.nctu.me/2020/01/31/maradns-%e5%b0%8f%e5%9e%8b-open-source-dns-server/

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

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

優點

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

MaraDNS 下載 https://maradns.samiam.org/download.html

下載後 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
 

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言