0%

Cache-Only DNS Server

單純做cache-Only DNS

LAB架構圖

cache-only_Architecture

DNS設定檔

  • 主設定檔: /etc/named.conf (主要是紅框的部分)
    cache-only

DNS啟動

- /etc/init.d/named start

DNS測試

- 正解測試: - dig -t a www.google.com @127.0.0.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.62.rc1.el6_9.4 <<>> -t a www.google.com @127.0.0.1
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 25098
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;www.google.com. IN A

;; ANSWER SECTION:
www.google.com. 82 IN A 216.58.200.228

;; Query time: 82 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; MSG SIZE rcvd: 48

參考資料

歡迎關注我的其它發布渠道