Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 78055 - Bind: named-checkconf checks wrong path
Summary: Bind: named-checkconf checks wrong path
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: AMD64 Linux
: High minor (vote)
Assignee: Jeffrey Forman (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-15 00:27 UTC by Jeff Martin
Modified: 2005-03-25 14:30 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Martin 2005-01-15 00:27:52 UTC
Actually a double bug with named-checkconf.

The first bug: while the man page correctly states that the file that named-checkconf checks "defaults to /etc/bind/named.conf", it is actually looking for /etc/named/named.conf (as used on other linux systems).

newserv etc # named -v
BIND 9.2.2-P1
newserv etc # ls -als /etc/bind/named.conf 
4 -r-xr-x---  1 root named 1182 Jan 15 02:56 /etc/bind/named.conf
newserv etc # named-checkconf 
/etc/bind/named.conf:35: change directory to '/etc/named' failed: file not found
/etc/bind/named.conf:35: parsing failed

When I tried to find a way around the first bug, I found a second bug: named-checkconf seems to ignore its filename argument. For example:

newserv bind # named-checkconf /etc/bind/named.conf 
/etc/bind/named.conf:35: change directory to '/etc/named' failed: file not found
/etc/bind/named.conf:35: parsing failed

As a workaround for now, I softlinked /etc/bind to /etc/named.


Reproducible: Always
Steps to Reproduce:
1. emerge bind
2. try to use named-checkconf to check the configuration file

Actual Results:  
named-checkconf failed to check bind's configuration file for problems

Expected Results:  
use the gentoo path of /etc/bind instead of /etc/named

newserv bind # emerge info
Portage 2.0.51-r12 (default-linux/amd64/2004.3, gcc-3.4.3,
glibc-2.3.4.20041102-r0, 2.6.10-gentoo-r2 x86_64)
=================================================================
System uname: 2.6.10-gentoo-r2 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Jan 10 2005, 00:54:49)]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.5, 1.6.3, 1.7.9, 1.4_p6, 1.8.5-r2, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r2
virtual/os-headers:  2.6.8.1-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-march=k8 -pipe -fomit-frame-pointer -O3 -ffast-math -funroll-all-loops
-funit-at-a-time -fpeel-loops -ftracer -funswitch-loops"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/bind
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -pipe -fomit-frame-pointer -O3 -ffast-math
-funroll-all-loops -funit-at-a-time -fpeel-loops -ftracer -funswitch-loops"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X aac aalib acpi alsa apache2 avi bash-completion berkdb bitmap-fonts
bzlib cdr crypt cups curl divx4linux dvdr emul-linux-x86 encode esd evo fam flac
font-server gd gdbm gif gnome gpm gtk gtk2 gtkhtml imagemagick imap imlib innodb
ipv4 java jp2 jpeg junit kde kerberos krb4 libwww lzw lzw-tiff mad mbox mime
mmap motif mozilla mpeg multilib mysql ncurses nis nls opengl oss pam perl php
png postgres python qt quicktime readline samba scanner sockets sox spell ssl
sysvipc tcltk tcpd tiff truetype truetype-fonts type1-fonts usb userlocales wmf
xine xml2 xmms xpm xrandr xv zlib"
Unset:  LDFLAGS, PORTDIR_OVERLAY
Comment 1 Konstantin Arkhipov (RETIRED) gentoo-dev 2005-03-25 14:30:26 UTC
unreproduceable with 9.2.5
please, reopen if problem is still exist