New installation of BIND on Oracle Linux

chris liesfield chris.liesfield at gmail.com
Tue Dec 1 23:25:50 UTC 2015


Hi All.

We've just installed BIND version "BIND 9.10.3 <id:2799933>" on Oracle
Linux 6.5.

Compiled from source, using defaults, with exception to the switches,
'--with-openssl' '--enable-threads' '--with-libxml2'

When attempting to start the daemon using the init.d script shown further
below, we encounter the following error message:-

Dec 2 10:15:37 sromelextdns02 named[5165]: BIND 9 is maintained by Internet
Systems Consortium,

Dec 2 10:15:37 sromelextdns02 named[5165]: Inc. (ISC), a non-profit
501(c)(3) public-benefit

Dec 2 10:15:37 sromelextdns02 named[5165]: corporation. Support and
training for BIND 9 are

Dec 2 10:15:37 sromelextdns02 named[5165]: available at
https://www.isc.org/support

Dec 2 10:15:37 sromelextdns02 named[5165]:
----------------------------------------------------

Dec 2 10:15:37 sromelextdns02 named[5165]: adjusted limit on open files
from 4096 to 1048576

Dec 2 10:15:37 sromelextdns02 named[5165]: found 4 CPUs, using 4 worker
threads

Dec 2 10:15:37 sromelextdns02 named[5165]: using 2 UDP listeners per
interface

Dec 2 10:15:37 sromelextdns02 named[5165]: using up to 4096 sockets

*Dec 2 10:15:37 sromelextdns02 named[5165]: loading configuration from
'/etc/named.conf' Dec 2 10:15:37 sromelextdns02 named[5165]: open:
/etc/named.conf: file not found Dec 2 10:15:37 sromelextdns02 named[5165]:
loading configuration: file not found *

Dec 2 10:15:37 sromelextdns02 named[5165]: exiting (due to fatal error)

We've disabled SELinux, thinking this may be the root cause, however it
does not seem to make a difference.

User named has been created and owns the relevant files.

Any ideas on where we've gone wrong would be gratefully received, as we're
stuck at this point ...

/etc/named.conf below:-

// SRO BIND configuration file

// ... some name server ...

// Written chapter and verse on 20130325 by Chris Liesfield

// Last modified 201511271436 by Chris Liesfield

options {

directory "/var/named";

pid-file "named.pid";

allow-query { "any"; };

also-notify { w.x.y.z; };

recursion no;

version "Not Telling";

hostname none;

querylog yes;

};

controls {

inet 127.0.0.1 allow { localhost; } keys { rndc-key; };

};

key "rndc-key" {

algorithm hmac-md5;

secret "some secret";

};

controls {

inet 127.0.0.1 port 953

allow { 127.0.0.1; } keys { "rndc-key"; };

};

zone "." IN {

type hint;

file "named.cache";

};

zone "localhost" IN {

type master;

file "localhost.zone";

allow-update { none; };

};

// ZONES //

zone "0.0.127.in-addr.arpa" IN {

type master;

file "db.127.0.0";

};

include "/etc/rndc.key";

logging {

category "default" { "debug"; };

category "general" { "debug"; };

category "database" { "debug"; };

category "security" { "debug"; };

category "config" { "debug"; };

category "resolver" { "debug"; };

category "xfer-in" { "debug"; };

category "xfer-out" { "debug"; };

category "notify" { "debug"; };

category "client" { "debug"; };

category "unmatched" { "debug"; };

category "network" { "debug"; };

category "update" { "debug"; };

category "queries" { "debug"; };

category "dispatch" { "debug"; };

category "dnssec" { "debug"; };

category "lame-servers" { "debug"; };

channel "debug" {

file "/var/named/bind.log" versions 2 size 50m;

print-time yes;

print-category yes;

};

};

Startup script below:-

#!/bin/sh

#

# named This shell script takes care of starting and stopping

# named (BIND DNS server).

#

# chkconfig: 345 55 45

# description: named (BIND) is a Domain Name Server (DNS) \

# that is used to resolve host names to IP addresses.

# probe: true

# Source function library.

. /etc/rc.d/init.d/functions

# Source networking configuration.

. /etc/sysconfig/network

# Check that networking is up.

[ ${NETWORKING} = "no" ] && exit 0

[ -f /usr/local/sbin/named ] || exit 0

# See how we were called.

case "$1" in

start)

# Start daemons.

echo -n "Starting named: "

daemon /usr/local/sbin/named -u named -t /var/named -c /etc/named.conf

echo

touch /var/lock/subsys/named

;;

stop)

# Stop daemons.

echo -n "Shutting down named: "

killproc named

rm -f /var/lock/subsys/named

echo

;;

status)

status named

exit $?

;;

restart)

$0 stop

$0 start

exit $?

;;

reload)

/usr/local/sbin/rndc reload

exit $?

;;

probe)

# named knows how to reload intelligently; we don't want linuxconf

# to offer to restart every time

/usr/local/sbin/rndc reload >/dev/null 2>&1 || echo start

exit 0

;;

*)

echo "Usage: named {start|stop|status|restart|reload}"

exit 1

esac

exit 0

Your help is appreciated. Thanks in advance.

Regards,

*Chris Liesfield *

BCompSc. (Dist), CISSP, CCNP/DP.

*Manager - IT Facilities and Connectivity State Revenue Office Victoria *

121 Exhibition Street, Melbourne, 3000. *T* 03 9628 6735 *M* 0403 418558

*E*

*chris.liesfield at sro.vic.gov.au <chris.liesfield at sro.vic.gov.au>,
sro.network at sro.vic.gov.au <sro.network at sro.vic.gov.au>*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/bind-users/attachments/20151202/f5b41f1f/attachment.html>


More information about the bind-users mailing list