架設dhcp server,需不需要先架好dns server?



贊助商連結


seagal
2008-08-24, 10:48 PM
請問架設dhcp server,主機需不需要架好dns才能架設dhcp

我用fedora core在啟動dhcpd的時候都會出現下列錯誤訊息,有人知道是為什麼嗎?

[root@ns2 etc]# /sbin/service dhcpd restart
Internet Systems Consortium DHCP Server V3.0.1
Copyright 2004 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
/etc/dhcpd.conf line 23: unexpected end of file
#}
^
Configuration file errors encountered -- exiting

If you did not get this software from ftp.isc.org, please
get the latest from ftp.isc.org and install that before
requesting help.

If you did get this software from ftp.isc.org and have not
yet read the README, please read it before requesting help.
If you intend to request help from the [email protected]
mailing list, please read the section on the README about
submitting bug reports and requests for help.

Please do not under any circumstances send requests for
help directly to the authors of this software - please
send them to the appropriate mailing list as described in
the README file.

exiting.

贊助商連結


tvirus
2008-08-25, 01:19 AM
你的大刮號有頭無尾..
應該是你把某行註解掉時,連那個大括號都註解掉了..
就如上面的錯誤訊息所示
/etc/dhcpd.conf line 23: unexpected end of file
#}
^

阿 土
2008-08-26, 11:26 AM
架設 dhcp server 跟是否已經架設 dns server 無關
你的問題 , tvirus 已經說出來了
應該是 /etc/dhcpd.conf 有錯誤導致無法執行

可將 /etc/dhcpd.conf 貼上來幫你看看先