LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-16-2002, 02:19 AM   #1
ericcarlson
Member
 
Registered: Jan 2002
Posts: 162

Rep: Reputation: 30
Bind 9.2.1


I've just downloaded bind and ran configure & make and it seemed to work ok. But now what ? I have read the arm html docs but can't see what I do to a) start it and b) start it each time the server is restarted. I know where the config files live etc as I have used bind previously when preloaded on a RH distro. This (virtual) server is rented through so I have to roll it all by hand. Thanks!!!
 
Old 08-16-2002, 03:10 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
When you have it installed, to start it use something like this
/usr/local/sbin/named -u named
That's how I run it, it's installed in /usr/local/sbin (default when compiling from source) and I want it to run as user 'named'.
To start it at boot, add the line you use to start named to one of your starting scripts (I prefer /etc/rc.d/rc.local. You can add this line anywhere you wish in this file, I prefer the beggining.).
 
Old 08-16-2002, 05:06 PM   #3
ericcarlson
Member
 
Registered: Jan 2002
Posts: 162

Original Poster
Rep: Reputation: 30
Thanks. Actually I did try just running "named" and assumed that because the daemon died immediately I'd done something wrong, in fact /var/log/messages told me its configs were missing. So, if I could trouble you a little further (;-), could you spot whats wrong now : I enter

>nslookup www.host-in-db-file.conf ww.xx.yy.zz

and nslookup fails after a delay with "connection timed out, no servers could be reached".

>ps -Af | grep named shows
admin 24319 1 0 22:42 ? 00:00:00 /usr/local/sbin/named -c /usr/local/bind-9.2.1/conf/named.conf

That named.conf is

options {
directory "/var/named";
};
zone "." in {
type hint;
file "db.cache";
};
zone "1.168.192.in-addr.arpa" in {
type master;
file "db.192.168.1";
};
zone "0.0.127.in-addr.arpa" in {
type master;
file "db.127.0.0";
};
zone "host-in-db-file.com" {
type master;
file "db.host-in-db-file.com";
};

And finally db.host-in-db-file.com is:

$TTL 86400
@ IN SOA www.host-in-db-file.com. hostmaster.host-in-db-file.com. (
1 ; serial
10800 ; refresh
3600 ; retry
604800 ; expire
86400 ) ; default_ttl

IN NS my-nameservers-hostname.com.

IN A www.xxx.yyy.zzz

www IN A www.xxx.yyy.zzz


Some of the entries in named.conf have come from an intranet server running RH. Also, I'm not sure if my hosting company will allow this so it may be the setup is correct but they have blocked ns lookups on the ports. Thanks very much!!!
 
Old 08-17-2002, 09:44 AM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Hmm, I think your nslookup command does not look good. Do you really use www.host-in-db-file.conf ? I think it should be rather host-in-db-file.com .
BTW, nslookup is outdated, the new utility is dig. You use it this way:
dig @nameserver host
where 'nameserver' is the nemeserver you'd like to use for query and 'host' is the host you'd like to resolve.
 
Old 08-17-2002, 01:18 PM   #5
ericcarlson
Member
 
Registered: Jan 2002
Posts: 162

Original Poster
Rep: Reputation: 30
That was a typo, I was running nslookup ok. Turns out it can't work as we don't have root access and the virtual server is setup such that only root can listen to port #53.
 
Old 08-17-2002, 04:47 PM   #6
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Hmm, when you run named from starting scripts, it runs as root (you can change it using named -u username), so there should be no problem.
 
Old 08-17-2002, 05:19 PM   #7
ericcarlson
Member
 
Registered: Jan 2002
Posts: 162

Original Poster
Rep: Reputation: 30
They are running FreeVsd. Regular users have the usual privilege and each virtual server has an "admin" account not quite as powerful as the machines root user. Port #53 has been assigned read/write only to root, so no matter who I run it as I'm stuffed.

Anyone wiilling to let me stick a few domains on their nameserver please ;-)
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need BIND help rjkfsm Linux - Networking 1 09-15-2005 11:09 AM
Bind 8 and Bind 9 sierra Linux - Networking 2 03-16-2005 11:15 AM
How do I revert to Bind 8 from Bind 9? digging4roots Linux - Newbie 3 06-08-2002 04:40 PM
To 'Bind' or not to 'Bind' that is the question jsurgeson Linux - Newbie 2 03-24-2002 03:10 AM
Bind c0c0deuz Linux - Networking 0 12-13-2001 05:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:19 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