DNS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationDNS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 5th, 2004, 10:29 AM
scriptkiddie scriptkiddie is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: UK
Posts: 68 scriptkiddie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 5 sec
Reputation Power: 7
Problems installing BIND

Hi, I am trying to install BIND on redhat linux 9.
the configure script I am running is:

./configure \
--prefix=/usr \
--sysconfdir=/etc \
--enable-threads \
--localstatedir=/var/state \
--with-libtool \
--with-openssl=/usr/local/ssl

this runs find, I then run make and then make install, and both of these appear to run fine.

I then go to edit named.conf, and it doesn't exist, so I have a look for named in /etc/init.d and that doesn't exist. to me this appears like I have run the compile script, run the install, and it hasn't installed. Previous to me attempting to install BIND i have run 'locate named.conf' and 'locate bind' and I get no results + when I installed redhat I didn't install any of the server stuff.

The server does currently have apache/php/mysql/mod_ssl/openssl etc as I have already compiled those from source and they work great.

does anyone know where I'm going wrong?
thanks

Reply With Quote
  #2  
Old July 5th, 2004, 10:33 AM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,193 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 14 h 35 m 27 sec
Reputation Power: 77
you're not supposed to get a named.conf right after you install. I suggest you read the sticky topic "Bet you want to setup a dns server huh?".
__________________
Send me a private message if you would like me to setup your DNS for you for a price of your choosing. This is the preferred method if your DNS needs to be fixed/setup fast and you don't have the time to bounce messages back and forth on a forum. Also, check out these links:

Whois Direct | DNS Crawler | NS Trace | Compare Free DNS Hosts

Reply With Quote
  #3  
Old July 5th, 2004, 10:53 AM
scriptkiddie scriptkiddie is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: UK
Posts: 68 scriptkiddie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 5 sec
Reputation Power: 7
I have just looked at this now come located rndc fine, but the first command to type in

cd /etc/named

produces

-bash: cd: /etc/named: No such file or directory

Reply With Quote
  #4  
Old July 5th, 2004, 11:01 AM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,193 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 14 h 35 m 27 sec
Reputation Power: 77
My bad, it was a typo. Just cd to /etc. I'll correct the post.

Reply With Quote
  #5  
Old July 6th, 2004, 03:02 AM
scriptkiddie scriptkiddie is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: UK
Posts: 68 scriptkiddie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 5 sec
Reputation Power: 7
ok, i shall have another go

Reply With Quote
  #6  
Old July 6th, 2004, 03:42 AM
scriptkiddie scriptkiddie is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: UK
Posts: 68 scriptkiddie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 5 sec
Reputation Power: 7
I get the impression that i'm missing something. following your post, i have had to download all your files and I didn't have to move anything as nothing existed. Then i'm following your post and it say, your dns server should work now but it will be the wrong information. I still tried it just to see if it worked, and it wouldn't start. I get:

rndc: connect failed: connection refused

I then put that into google and I keep seeing things about caching-nameserver. I also saw this when I was searching the web before posting here. As from my first post when I said files were missing etc, could this be that I haven't installed something

The only file I have installed is BIND 9 from ftp://ftp.isc.org/isc/bind9/9.2.3/bind-9.2.3.tar.gz

is there something else that i'm meant to install, which is why i'm finding it so different ?

Reply With Quote
  #7  
Old July 6th, 2004, 08:17 AM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,193 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 14 h 35 m 27 sec
Reputation Power: 77
Cause BIND usually comes with linux and unix systems, so I wrote my tutorial accordingly. There's a couple more command you need to do since it apparently didn't exist.

cd /etc
wget http://www.dollardns.net/bind/rndc.key
killall named
named -u named

After the above commands, rndc will work.

Reply With Quote
  #8  
Old July 6th, 2004, 08:26 AM
scriptkiddie scriptkiddie is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: UK
Posts: 68 scriptkiddie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 5 sec
Reputation Power: 7
[root@localhost etc]# useradd named
[root@localhost etc]# named -u named
[root@localhost etc]# rndc start
rndc: connect failed: connection refused

this is what I get now , am I running that named -u named command in the correct folder ?

Reply With Quote
  #9  
Old July 6th, 2004, 08:32 AM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,193 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 14 h 35 m 27 sec
Reputation Power: 77
doesn't matter from where you execute named. Show me the results for this:

named -u named -g

There was probably a configuration error in named.conf that prevented it from running. Or one or more files don't have the correct permissions.

Reply With Quote
  #10  
Old July 6th, 2004, 09:14 AM
scriptkiddie scriptkiddie is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: UK
Posts: 68 scriptkiddie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 5 sec
Reputation Power: 7
[root@localhost etc]# named -u named -g
Jul 06 15:11:59.535 starting BIND 9.2.3 -u named -g
Jul 06 15:11:59.536 using 4 CPUs
Jul 06 15:11:59.538 loading configuration from '/etc/named.conf'
Jul 06 15:11:59.538 /etc/named.conf:106: unknown option '82.163.186.204'
Jul 06 15:11:59.538 loading configuration: failure
Jul 06 15:11:59.538 exiting (due to fatal error)

thats the results from that command

Reply With Quote
  #11  
Old July 6th, 2004, 09:17 AM
scriptkiddie scriptkiddie is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: UK
Posts: 68 scriptkiddie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 5 sec
Reputation Power: 7
mmm, i just noticed something from that, but i have remove it and its actually this now:

Jul 06 15:14:30.066 starting BIND 9.2.3 -u named -g
Jul 06 15:14:30.066 using 4 CPUs
Jul 06 15:14:30.069 loading configuration from '/etc/named.conf'
Jul 06 15:14:30.079 no IPv6 interfaces found
Jul 06 15:14:30.079 listening on IPv4 interface lo, 127.0.0.1#53
Jul 06 15:14:30.079 listening on IPv4 interface eth1, 192.168.1.1#53
Jul 06 15:14:30.083 command channel listening on 127.0.0.1#953
Jul 06 15:14:30.083 ignoring config file logging statement due to -g option
Jul 06 15:14:30.083 couldn't open pid file '/var/run/named.pid': Permission denied
Jul 06 15:14:30.083 exiting (due to early fatal error)

edit> just checked for the file /var/run/named.pid and that doesn't seem to exist

Reply With Quote
  #12  
Old July 6th, 2004, 10:54 AM
scriptkiddie scriptkiddie is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: UK
Posts: 68 scriptkiddie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 5 sec
Reputation Power: 7
mmm, I think I have really gone and screwed it up now. I found these rpms on a site for redhat 9:

caching-nameserver-7..>
bind-9.2.1-16.i386.rpm
bind-devel-9.2.1-16...>
bind-utils-9.2.1-16...>

I tried installing these on the server that is in the rest of the conversation and it came up with some errors, saying installed but had to name this file to this because it already existed.

So I deleted the files and tried running the rpm again and it said already installed. so I tried to uninstall and it said, doesn't exist

so I took the rpms to another server with the same config, just different hardware that I have setup, and they have installed fine, with all the correct files to follow the "how to setup a dns server" sticky

now i have it working on a server i have just been mucking around on, and broken the server thats actually going to be used live

Reply With Quote
  #13  
Old July 6th, 2004, 01:02 PM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,193 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 14 h 35 m 27 sec
Reputation Power: 77
* SilentRage smacks his hand to his forehead

heh, it seems that people love to try to fix what isn't broken. With a little bit of patience, you could've gotten all your answers from me. Not only have I removed and installed rpms before, but I've friggen created rpms too and that is hell lemme tell ya.

So anyway, before all you had was a file permissions problem easily fixed with a single command, but now we may have numerous unknown problems. So let's start by cleaning your system. Show me the results to the following command. With this information I will give you an entire set of commands to execute to make sure your machine is nice and clean for the rpm install since I guess you're starting to like rpms.

rpm -qa | grep 'bind'

P.S. A word of advice. For the rest of the time I'm helping you do not try to fix a problem yourself unless you know exactly what the problem is and why the problem exists and a good understanding on how to fix it.

P.S.S. don't feel too bad though. I prefer people who blunder around breaking stuff with good intentions than those who sits back and follows instructions mechanically without even trying to figure out how it all works.

Last edited by SilentRage : July 6th, 2004 at 01:10 PM.

Reply With Quote
  #14  
Old July 6th, 2004, 01:47 PM
scriptkiddie scriptkiddie is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: UK
Posts: 68 scriptkiddie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 5 sec
Reputation Power: 7
ooops, i shall try not to break n e thing else

the reports from that command you gave were:

[root@localhost root]# rpm -qa | grep 'bind'
bind-devel-9.2.1-16
bind-9.2.1-16
ypbind-1.11-4
bind-utils-9.2.1-16
[root@localhost root]#

yeh, as you can probably tell, i'm a linux newbie but i'm starting to find my way round a little bit. been going at linux for only bout a month or so now and had to re format many times as i kept putting stuff on, breaking it and then having to re format to uninstall . but due to this i have managed to get 2 servers running apache/php/mysql/gd/pdflib (+ a few more php mods) and get an ftp server running. next task to get a dns running, then onto sendmail i think

Reply With Quote
  #15  
Old July 7th, 2004, 01:28 AM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,193 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 14 h 35 m 27 sec
Reputation Power: 77
I'm sure you'll learn quickly. 2 months ago I was also a linux newbie. But then I got a dedicated server and setup all kinds of stuff on it for my site. Not to bad, the internet is like a great blinkin reference book to me. Anything I wanna know I look it up, and suddenly find myself knowing more than most people on the subject. Crazy thing.

So here's the commands you need to execute.

rpm -e bind-devel-9.2.1-16 bind-9.2.1-16 bind-utils-9.2.1-16
rm -rf /var/named /etc/named.* /etc/rndc.*

That should do it. Tell me if the "rpm -e" command bitched about anything. If not, try the RPM install after executing the above commands.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem Administration