Fedora 9 Perfect Server - BIND?

Discussion in 'HOWTO-Related Questions' started by coldspring, May 27, 2008.

  1. coldspring

    coldspring New Member

    This is my first time working with servers so please excuse my lack of knowledge.

    Starting from a fresh Fedora 9 Install I have been following the Fedroa 9 How-to when I go to 10 Install A Chrooted DNS Server (BIND9).

    The following interaction to place:

    [root@server ~]# yum install bind-chroot
    Loaded plugins: refresh-packagekit
    Setting up Install Process
    Parsing package install arguments
    Resolving Dependencies
    --> Running transaction check
    ---> Package bind-chroot.i386 32:9.5.0-29.b2.fc9 set to be updated
    --> Finished Dependency Resolution

    Dependencies Resolved

    =============================================================================
    Package Arch Version Repository Size
    =============================================================================
    Installing:
    bind-chroot i386 32:9.5.0-29.b2.fc9 fedora 55 k

    Transaction Summary
    =============================================================================
    Install 1 Package(s)
    Update 0 Package(s)
    Remove 0 Package(s)

    Total download size: 55 k
    Is this ok [y/N]: y
    Downloading Packages:
    (1/1): bind-chroot-9.5.0-29.b2.fc9.i386.rpm | 55 kB 00:00
    Running rpm_check_debug
    Running Transaction Test
    Finished Transaction Test
    Transaction Test Succeeded
    Running Transaction
    Installing: bind-chroot ######################### [1/1]
    warning: group named does not exist - using root
    warning: group named does not exist - using root
    warning: group named does not exist - using root
    warning: group named does not exist - using root
    warning: user named does not exist - using root
    warning: group named does not exist - using root
    warning: group named does not exist - using root
    warning: user named does not exist - using root
    warning: group named does not exist - using root
    warning: user named does not exist - using root
    warning: group named does not exist - using root
    warning: user named does not exist - using root
    warning: group named does not exist - using root
    warning: group named does not exist - using root
    warning: user named does not exist - using root
    warning: group named does not exist - using root
    warning: user named does not exist - using root
    warning: group named does not exist - using root

    Installed: bind-chroot.i386 32:9.5.0-29.b2.fc9
    Complete!
    [root@server ~]# chmod 755 /var/named/
    [root@server ~]# chmod 775 /var/named/chroot/
    [root@server ~]# chmod 775 /var/named/chroot/var/
    [root@server ~]# chmod 775 /var/named/chroot/var/named/
    [root@server ~]# chmod 775 /var/named/chroot/var/run/
    [root@server ~]# chmod 777 /var/named/chroot/var/run/named/
    [root@server ~]# cd /var/named/chroot/var/named/
    [root@server named]# ln -s ../../ chroot
    [root@server named]# chkconfig --levels 235 named on
    error reading information on service named: No such file or directory
    [root@server named]# /etc/init.d/named start
    -bash: /etc/init.d/named: No such file or directory


    As you can see I received an error saying it could not read information on service named: No such file or directory

    I got around this problem by installing BIND. and got the following respose:

    [root@server named]# yum install bind
    Loaded plugins: refresh-packagekit
    Setting up Install Process
    Parsing package install arguments
    Resolving Dependencies
    --> Running transaction check
    ---> Package bind.i386 32:9.5.0-29.b2.fc9 set to be updated
    --> Finished Dependency Resolution

    Dependencies Resolved

    =============================================================================
    Package Arch Version Repository Size
    =============================================================================
    Installing:
    bind i386 32:9.5.0-29.b2.fc9 fedora 1.6 M

    Transaction Summary
    =============================================================================
    Install 1 Package(s)
    Update 0 Package(s)
    Remove 0 Package(s)

    Total download size: 1.6 M
    Is this ok [y/N]: y
    Downloading Packages:
    (1/1): bind-9.5.0-29.b2.fc9.i386.rpm | 1.6 MB 00:03
    Running rpm_check_debug
    Running Transaction Test
    Finished Transaction Test
    Transaction Test Succeeded
    Running Transaction
    Installing: bind ######################### [1/1]
    /usr/bin/find: /var/log/named.log: No such file or directory
    warning: /etc/sysconfig/named created as /etc/sysconfig/named.rpmnew

    Installed: bind.i386 32:9.5.0-29.b2.fc9
    Complete!
    [root@server named]# yum install bind-chroot
    Loaded plugins: refresh-packagekit
    Setting up Install Process
    Parsing package install arguments
    Package 32:bind-chroot-9.5.0-29.b2.fc9.i386 already installed and latest version
    Nothing to do
    [root@server named]# chmod 755 /var/named/
    [root@server named]# chmod 775 /var/named/chroot/
    [root@server named]# chmod 775 /var/named/chroot/var/
    [root@server named]# chmod 775 /var/named/chroot/var/named/
    [root@server named]# chmod 775 /var/named/chroot/var/run/
    [root@server named]# chmod 777 /var/named/chroot/var/run/named/
    [root@server named]# cd /var/named/chroot/var/named/
    [root@server named]# ln -s ../../ chroot
    ln: creating symbolic link `chroot/..': File exists
    [root@server named]# chkconfig --levels 235 named on
    [root@server named]# /etc/init.d/named start
    Starting named: [ OK ]


    My question is this: Do I have bind in a chroot directory or in my main directory? And; Why did I have to do something different than the How-to?


    Thanks for the help

    Chris
     
  2. falko

    falko Super Moderator

    Should be ok now. I don't know why this happened, maybe the Fedora packages have changed in the meantime...
     

Share This Page