LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-08-2010, 10:16 AM   #1
gymiv@aol.com
Member
 
Registered: Oct 2010
Location: linwood, KS
Distribution: CentOS
Posts: 59

Rep: Reputation: 0
Bind Setup issues


I am running slackware 8.0 and am trying to install bind 9.2. It is the enviroment i work in so i have no choice. This is a test dns server. I have done a full install of slackware 8.0 and am now trying to install bind. I have downloaded and unzipped the bind file. The setup instructions i am following are at this link http://archive.linuxfromscratch.org/...rver/bind.html everything has installed fine until i got to the "Create the Bind boot script" part of the install. The first command is cat > etc/rc.d/init.d/bind << "EOF". When I try to create the script this error comes up "No such file or directory". After looking inside of the etc/rd.d folder i noticed there are scripts but no init.d folder, so it can not write to it. I have done hours of research and have not been able to find an answer to this issue.
Please Help
Thanks

Last edited by gymiv@aol.com; 10-08-2010 at 10:17 AM.
 
Old 10-08-2010, 10:56 AM   #2
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
As a rule slackware tends not to use the SysVinit system (though later versions do support it). If your box has a /etc/rc.d/rc.bind then perhaps you can look at customising that to work with the version you're installing.
 
Old 10-08-2010, 11:23 AM   #3
gymiv@aol.com
Member
 
Registered: Oct 2010
Location: linwood, KS
Distribution: CentOS
Posts: 59

Original Poster
Rep: Reputation: 0
there is no rc.bind file either. That also makes me wonder if the install i followed is correct. I have a live DNS server that does not have these files or folders on them either.
 
Old 10-08-2010, 11:31 AM   #4
jovanoti
LQ Newbie
 
Registered: Mar 2010
Distribution: Slackware
Posts: 25

Rep: Reputation: 2
This is bind init script from -current Slackware64. You just have to edit path to executables if bind is installed under different location.
Attached Files
File Type: txt rc.bind.txt (3.0 KB, 21 views)
 
Old 10-08-2010, 11:35 AM   #5
gymiv@aol.com
Member
 
Registered: Oct 2010
Location: linwood, KS
Distribution: CentOS
Posts: 59

Original Poster
Rep: Reputation: 0
how can i tell where bind was installed. It should be the defaults but i cannot find it
 
Old 10-08-2010, 11:39 AM   #6
gymiv@aol.com
Member
 
Registered: Oct 2010
Location: linwood, KS
Distribution: CentOS
Posts: 59

Original Poster
Rep: Reputation: 0
Is that all i have to do is put this file into the etc/rc.d folder and restart the computer to run bind?
 
Old 10-08-2010, 11:43 AM   #7
gymiv@aol.com
Member
 
Registered: Oct 2010
Location: linwood, KS
Distribution: CentOS
Posts: 59

Original Poster
Rep: Reputation: 0
What about the run level symlinks do i still need to create those or am I going about this the wrong way?

Create the BIND boot script:

cat > /etc/rc.d/init.d/bind << "EOF"
#!/bin/bash
# Begin $rc_base/init.d/bind
# Based on sysklogd script from LFS-3.1 and earlier.
# Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
source /etc/sysconfig/rc
source $rc_functions
case "$1" in
start)
echo "Starting named..."
loadproc /usr/sbin/named -u named -t /home/named -c \
/etc/named.conf
;;
stop)
echo "Stopping named..."
killproc /usr/sbin/named
;;
restart)
$0 stop
sleep 1
$0 start
;;
reload)
echo "Reloading named..."
/usr/sbin/rndc -c /etc/rndc.conf reload
;;

status)
statusproc /usr/sbin/named
;;
*)
echo "Usage: $0 {start|stop|restart|status}"
exit 1
;;
esac
# End $rc_base/init.d/bind
EOF


Add the run level symlinks:

chmod 754 /etc/rc.d/init.d/bind &&
ln -s /etc/rc.d/init.d/bind /etc/rc.d/rc0.d/K49bind &&
ln -s /etc/rc.d/init.d/bind /etc/rc.d/rc1.d/K49bind &&
ln -s /etc/rc.d/init.d/bind /etc/rc.d/rc2.d/K49bind &&
ln -s /etc/rc.d/init.d/bind /etc/rc.d/rc3.d/S22bind &&
ln -s /etc/rc.d/init.d/bind /etc/rc.d/rc4.d/S22bind &&
ln -s /etc/rc.d/init.d/bind /etc/rc.d/rc5.d/S22bind &&
ln -s /etc/rc.d/init.d/bind /etc/rc.d/rc6.d/K49bind
 
Old 10-08-2010, 02:30 PM   #8
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
No you don't need the symlinks, they're a part of the sysvinit system which Slackware doesn't use.

If /etc/rc.d/rc.bind is executable then Slackware should run it on startup.
 
Old 10-08-2010, 03:17 PM   #9
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
I think the safest way to proceed is to take the bind 9.4.3 sources plus SlackBuild script that was released for Slackware 8.1 last june, and see if you can use the bind.SlackBuild to compile a Slackware package on your 8.0 machine. If you use upgradepkg you'll end up with a properly integrated and modern/safe version of bind for Slackware.

See http://slackware.osuosl.org/slackwar...s/source/bind/ for the sources plus SlackBuild script.

Eric
 
Old 10-08-2010, 04:11 PM   #10
gymiv@aol.com
Member
 
Registered: Oct 2010
Location: linwood, KS
Distribution: CentOS
Posts: 59

Original Poster
Rep: Reputation: 0
do i need to download all of the files on that ftp site for this? My live DNS server is bind 9.2. I am trying to learn how to administer it. Noone has been here to admin it for 4 years according to what i am told. Since I am not as proficent in linux as i would like to be. I am building this test server to learn how to admin the bind 9.2. If i install the 9.4 will that still teach me what i need to admin this live dns server?
Thanks
 
Old 10-11-2010, 08:37 AM   #11
gymiv@aol.com
Member
 
Registered: Oct 2010
Location: linwood, KS
Distribution: CentOS
Posts: 59

Original Poster
Rep: Reputation: 0
And where are the install instructions? hopefully for slackware
 
Old 10-11-2010, 08:42 AM   #12
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,098

Rep: Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175
FYI, I learned how to administer bind reading this book, it's very well written.

dns management is nearly impossible to learn simply looking at config files, you need some background.

Last edited by ponce; 10-11-2010 at 08:45 AM.
 
Old 10-11-2010, 09:09 AM   #13
gymiv@aol.com
Member
 
Registered: Oct 2010
Location: linwood, KS
Distribution: CentOS
Posts: 59

Original Poster
Rep: Reputation: 0
I have many years background in dns management with microsoft servers. I am struggling with the install process and how to operate bind. I have not messed with linux a wholed lot. I am mostly use to microsoft but i have been administering microsoft dns servers for many years.

Last edited by gymiv@aol.com; 10-11-2010 at 09:14 AM.
 
Old 10-11-2010, 09:21 AM   #14
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,098

Rep: Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175
Quote:
Originally Posted by gymiv@aol.com View Post
I have many years background in dns management with microsoft servers.
probably won't help you much with bind as they are the most non-standard dns servers out there (worked -and still working- at the same time also with them).

if you need help for building the package from the sources/slackbuild Eric pointed you to, you can have a look at the slackwiki.

Last edited by ponce; 10-11-2010 at 09:23 AM.
 
Old 10-11-2010, 10:00 AM   #15
gymiv@aol.com
Member
 
Registered: Oct 2010
Location: linwood, KS
Distribution: CentOS
Posts: 59

Original Poster
Rep: Reputation: 0
This tells me how to write an installation script or upgrade script. I am not sure what files are what from the 9.4 that i was pointed to. So I do not know how to write the script. Is there not a simple install directions somewhere to to install 9.4.3 to slackware 8?
Thanks,

Jim
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Issues with BIND gurusmaran Linux - Networking 7 09-14-2005 11:21 PM
Setup BIND dawizman Linux - Software 4 05-28-2004 12:23 AM
setup bind 9.1.0 joseph Linux - General 0 08-14-2003 01:07 AM
Bind and security issues jchristman Linux - Networking 0 07-16-2003 08:36 AM
BIND - logging issues thebee Linux - Software 0 06-23-2003 12:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration