這個錯誤資訊明顯指出了是 /etc/named.conf 的問題,而且很可能在 41 行附近。根據我個人的經驗,這通常是您漏了 「 ;」符號的原因而已。nov 16
15:01:49 rh71 named[2287]: loading configuration from
'/etc/named.conf'
nov 16
15:01:49 rh71 named[2287]: /etc/named.conf:41: parse error near zone
nov 16
15:01:49 rh71 named[2287]: loading configuration: failure
nov 16
15:01:49 rh71 named[2287]: exiting (due to fatal error)
如果您碰到如下資訊,那是沒有為所有 rr 記錄項設定 ttl 而已,您可以為每乙個記錄項補上 ttl (在 in 前面),也可以在記錄檔案的前面用 $ttl 來設定:
如果您碰到下面這樣的資訊,那多是因為您打字錯誤的關係,輸入了 named 不認識的記錄類別名稱(例如漏了記錄名稱或打錯了):nov 16 15:04
:47rh71
named
[2395]: master
.c:1172: unexpected
error:
nov 16 15:04
:47rh71
named
[2395]: dns_master_load: siyongc
:3: no
ttlspecified.
this
zone
will
nolonger
work
infuture
versions. add
attl.
nov 16 15:04
:47rh71
named
[2395]: dns_master_load: siyongc
:5: using
rfc 1035 ttl
semantics
如下的問題,那可能是您沒有定義 soa 記錄,或設定有錯誤:nov 16
15:07:44 rh71 named[2422]: dns_master_load: siyongc:2: unknown rr
type
'siyongc.domain.'
nov 16
15:07:44 rh71 named[2422]: dns_zone_load: zone siyongc.domain/in: loading
master file siyongc: unknown class/type
下面的問題可能是您的 soa 記錄中多輸入了一組數字,或少輸入了一組數字,或數字格式有錯誤:nov 16
15:14:33 rh71 named[2506]: dns_zone_load: zone siyongc.domain/in: could
not find ns and/or soa records
nov 16
15:14:33 rh71 named[2506]: dns_zone_load: zone siyongc.domain/in: has
0 soa records
nov 16
15:14:33 rh71 named[2506]: dns_zone_load: zone siyongc.domain/in: no
ns records
nov 16
15:14:33 rh71 named[2506]: dns_zone_load: zone siyongc.domain/in: could not
find ns and/or soa records
nov 16
15:14:33 rh71 named[2506]: dns_zone_load: zone siyongc.domain/in: has
0 soa records
nov 16
15:14:33 rh71 named[2506]: dns_zone_load: zone siyongc.domain/in: no
ns records
nov 16
15:18:24 rh71 named[2562]: dns_rdata_fromtext: siyongc:4: near eol: unexpected
endof input
nov 16
15:18:24 rh71 named[2562]: dns_zone_load: zone siyongc.domain/in: loading
master file siyongc: unexpected end
of input
nov 16
15:19:34 rh71 named[2640]: dns_rdata_fromtext:
siyongc:4: near
'14b400':
syntax error
nov 16
15:19:34 rh71 named[2640]: dns_zone_load: zone
siyongc.domain/in: loading
master file siyongc: syntax error
以下是您沒有設定 ns 記錄或 ns 記錄設定有錯誤:nov 16 15:22:08 rh71 named[2669]: dns_rdata_fromtext: siyongc:3: near eol: unexpected
endof
input
nov 16
15:22:08 rh71 named[2669]: dns_zone_load: zone siyongc.domain/in: loading
master file siyongc: unexpected end
ofinput
nov 16
15:22:52 rh71 named[2696]: dns_rdata_fromtext: siyongc:4:
near 'in': extra input text
nov 16
15:22:52 rh71 named[2696]: dns_zone_load: zone siyongc.domain/in:
loading master file siyongc: extra input text
下面的錯誤可能是您設定了乙個記錄項超出了當前 origin 的範圍,例如 localhost. 或 siyongc. (也就是錯誤使用 fqdn );或是錯誤的使用了 $origin 設定;或是在 named.conf 中有多個 zone 在分享同乙份記錄檔案:nov 16
15:25:30 rh71 named[2801]: dns_zone_load: zone siyongc.domain/in: no ns records
下面的錯誤,有可能您在設定多個 $origin 並同時嘗試設定多個 soa 時出現的錯誤:nov 16 15:31
:20rh71
named
[2920]: dns_master_load: siyongc
:16:
ignoring
out-of-zone
data
許多許多問題,事實上您都可以在 /var/log/messages 中找到,當您發現這些錯誤資訊之後,看看是關於什麼記錄的,然後順藤摸瓜,留心一下檔案內容,就比較容易找到錯誤的原因了。nov 16 15:28
:31rh71
named
[2855]: dns_master_load: siyongc
:26:
notat
topof
zone
有時候,您想簡化您的 dns 設定工作,您可以使用 netconf 來做。不過,根據我的經驗是:netconf 未必能夠完全幫您正確的設定起來。當您重新啟動 named 之後,別忘了看一下 /var/log/messages ,確定沒有錯誤發生。如果您使用工具來設定 dns 而碰到問題,這就需要您有手工設定的能力了。
MySQL錯誤資訊
mysql的出錯 表,根據mysql的標頭檔案mysql include mysqld error.h整理而成。錯誤之處,請大家指正。1005 建立表失敗 1006 建立資料庫失敗 1007 資料庫已存在,建立資料庫失敗 1008 資料庫不存在,刪除資料庫失敗 1009 不能刪除資料庫檔案導致刪除資...
反饋錯誤資訊
即當出現錯誤 時,自動彈出我們預先設計好的反饋視窗,目的是使用者只需簡 單地按一下滑鼠就可以把反饋資訊發到你指定的信箱,當然反饋視窗的內容我們 可以任意修改設計。如下 script function errorinfo errorwin window.open width 20,height 120...
錯誤資訊介面
三 錯誤資訊介面 既然 com 是靠各種各樣的介面來提供服務的,於是很自然地就會想到,是否有乙個介面能夠提供更豐富的錯誤資訊報告那?答案是 isupporterrorinfo。下面這段 是使用 isupporterrorinfo 的一般方法 stdmethodimp c fun 上面是原理性 在我們...