Linux   发布时间:2022-04-01  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了linux – Bind9 named.conf文件中的错误.绑定不会开始大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

概述

我正在尝试在Ubuntu Server计算机上设置DNS服务器(10.04).我在Named.conf.local中配置了一个条目来测试它,但是当我尝试重新启动bind9时,我收到以下错误: * StarTing domain name service... bind9 [fail] 所以我检查了syslog的输出,这就是我得到的.
我正在尝试在Ubuntu Server计算机上设置DNS服务器(10.04).我在Named.conf.local中配置了一个条目来测试它,但是当我尝试重新启动bind9时,我收到以下错误
* StarTing domain name service... bind9                                 [fail]

所以我检查了syslog的输出,这就是我得到的.@H_607_19@ @H_773_16@may 20 18:11:13 empression-server1 named[4700]: starTing BIND 9.7.0-P1 -u bind May 20 18:11:13 empression-server1 named[4700]: built with '--prefix=/usr' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--sysconfdir=/etc/bind' '--localstatedir=/var' '--enable-threads' '--enable-largefile' '--with-libtool' '--enable-shared' '--enable-static' '--with-openssl=/usr' '--with-gssapi=/usr' '--with-gnu-ld' '--with-dlz-POSTGRes=no' '--with-dlz-MysqL=no' '--with-dlz-bdb=yes' '--with-dlz-filesystem=yes' '--with-dlz-ldap=yes' '--with-dlz-stub=yes' '--with-geoip=/usr' '--enable-ipv6' 'CFLAGS=-fno-Strict-aliasing -DDIG_SIGCHASE -O2' 'LDFLAGS=-Wl,-Bsymbolic-functions' 'CPPFLAGS=' May 20 18:11:13 empression-server1 named[4700]: adjusted limit on open files from 1024 to 1048576 May 20 18:11:13 empression-server1 named[4700]: found 4 cpus,using 4 worker threads May 20 18:11:13 empression-server1 named[4700]: using up to 4096 sockets May 20 18:11:13 empression-server1 named[4700]: loading configuration from '/etc/bind/named.conf' May 20 18:11:13 empression-server1 named[4700]: /etc/bind/named.conf:10: missing ';' before 'include' May 20 18:11:13 empression-server1 named[4700]: loading configuration: failure May 20 18:11:13 empression-server1 named[4700]: exiTing (due to Fatal error)

所以它认为我在认的named.conf文件中有一个错误,这非常荒谬.我经历了它,并删除一个空白行只是为了它的地狱,但我不知道它是如何形成那里的错误.请注意,在此之前我确实在Named.conf.local中有错误,但它在syslog中正确显示并修复了它,因此报告了正确的文件.这是named.conf的内容:@H_607_19@

// This is the priMary configuration file for the BIND DNS server named.
//
// Please read /usr/share/doc/bind9/README.Debian.gz for information on the 
// structure of BIND configuration files in Debian,*BEFORE* you customize 
// this configuration file.
//
// If you are just adding zones,please do that in /etc/bind/named.conf.local
include "/etc/bind/named.conf.options";
include "/etc/bind/named.conf.local";
include "/etc/bind/named.conf.default-zones";

解决方法

假设第10行是named.conf的最后一行,那么这个错误可能是由于named.conf.local中最后一个选项缺少分号引起的.

大佬总结

以上是大佬教程为你收集整理的linux – Bind9 named.conf文件中的错误.绑定不会开始全部内容,希望文章能够帮你解决linux – Bind9 named.conf文件中的错误.绑定不会开始所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。