排障集合 DNS配置檔案報錯

2021-10-09 09:31:35 字數 922 閱讀 9667

做dns解析伺服器注意三個檔案(兩個主配置檔案,乙個解析檔案)

[root@localhost etc]# systemctl start named

jobfor named.service failed because the control process exited with error code. see "systemctl status named.service" and "journalctl -xe"

for details.

使用named-checkzone和named-checkconf排障工具才發現這個不易察覺的問題,在named.rfc1912.zones中有兩個本地解析的模板,我們可以基於模板上修改,但是我今天恰巧多複製了乙個模板,事後沒有刪除造成報錯。

named-checkzone 網域名稱 解析檔案    //檢查解析檔案是否出錯

named-checkconf 配置檔案路徑 //解析配置檔案是否出錯

這裡強調出現報錯一定要多使用上面兩個named排障工具,能減少不少負擔。

dns配置檔案

etc resolv.conf 該檔案是dns網域名稱解析的配置檔案,它的格式很簡單,每行以乙個關鍵字開頭,後接配置引數。resolv.conf的關鍵字主要有四個,分別是 nameserver 定義dns伺服器的ip位址 domain 定義本地網域名稱 search 定義域名的搜尋列表 sortli...

Spring配置檔案報錯

multiple annotations found at this line cvc elt.1 cannot find the declaration of element beans schema reference.4 failed to read schema document becau...

openwrt 之 DNS配置檔案修改

參考 我在openwrt的web介面修改的wan口dns伺服器為8.8.8.8。但是通過ssh檢視 etc resolv.conf檔案發現總是被重置為了 root wrv54g cat etc resolv.conf search lan nameserver 127.0.0.1 複製 據我觀察在w...