LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-23-2004, 09:37 AM   #1
gsgleason
Member
 
Registered: Oct 2004
Posts: 69

Rep: Reputation: 15
cant get bind/named to work! please help!


I am running slack 10 with 2.6.9 kernel. I am following this guide to get bind running for a caching dns server. http://www.tldp.org/HOWTO/DNS-HOWTO-3.html

i created all the files like it says, changing a lot since slack10 has it's stuff in /var/named/caching-example and I created the stuff as the tutorial says, verbatim. It doesn't seem like my box is listening on port 53. I made /etc/rc.d/rc.bind executable and it says it's starting it. here's what my log says:

Quote:
Feb 25 18:13:51 gsgleason named[2830]: starting BIND 9.2.3
Feb 25 18:13:51 gsgleason named[2830]: using 1 CPU
Feb 25 18:13:51 gsgleason named[2830]: loading configuration from '/etc/named.conf'
Feb 25 18:13:51 gsgleason named[2830]: listening on IPv4 interface lo, 127.0.0.1#53
Feb 25 18:13:51 gsgleason named[2830]: listening on IPv4 interface eth0, 10.10.10.6#53
however,

Quote:
root@gsgleason:/var/log# telnet localhost 53
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
this tells me that it's not listening on port 53. also, as the tutorial says to test:

Quote:
root@gsgleason:/var/log# dig -x 127.0.0.1

; <<>> DiG 9.2.3 <<>> -x 127.0.0.1
;; global options: printcmd
;; connection timed out; no servers could be reached
also, my /etc/rc.d/rc.inet2 just had this:

Quote:
# Start the BIND name server daemon:
if [ -x /etc/rc.d/rc.bind ]; then
/etc/rc.d/rc.bind start
fi
and I added this per some slack doc I found. which is correct, and which should I have?

Quote:
# Start the NAMED/BIND name server:
if [ -f ${NET}/named ]; then
echo -n " named"
${NET}/named -u daemon -g daemon
fi
HELP!!!

here are my runnng processes, supposedly after bind is running. I'm not seeing bind here...
Quote:
root@gsgleason:/var/log# ps -ef
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 18:08 ? 00:00:00 init [3]
root 2 1 0 18:08 ? 00:00:00 [ksoftirqd/0]
root 3 1 0 18:08 ? 00:00:00 [events/0]
root 4 3 0 18:08 ? 00:00:00 [khelper]
root 5 3 0 18:08 ? 00:00:00 [kblockd/0]
root 27 3 0 18:08 ? 00:00:00 [pdflush]
root 28 3 0 18:08 ? 00:00:00 [pdflush]
root 30 3 0 18:08 ? 00:00:00 [aio/0]
root 29 1 0 18:08 ? 00:00:00 [kswapd0]
root 615 1 0 18:08 ? 00:00:00 [kseriod]
root 816 1 0 18:08 ? 00:00:00 udevd
root 1933 1 0 18:08 ? 00:00:00 /usr/sbin/syslogd
root 1936 1 0 18:08 ? 00:00:00 /usr/sbin/klogd -c 3 -x
root 2436 1 0 18:08 ? 00:00:00 [khubd]
root 2461 1 0 18:08 ? 00:00:00 /usr/sbin/inetd
root 2464 1 0 18:08 ? 00:00:00 /usr/sbin/sshd
root 2679 1 0 18:08 ? 00:00:00 /usr/sbin/crond -l10
daemon 2681 1 0 18:08 ? 00:00:00 /usr/sbin/atd -b 15 -l 1
root 2684 1 0 18:08 ? 00:00:00 sendmail: accepting connections
smmsp 2687 1 0 18:08 ? 00:00:00 sendmail: Queue runner@00:25:00
root 2699 1 0 18:08 ? 00:00:00 /usr/sbin/httpd
root 2701 1 0 18:08 ? 00:00:00 /usr/sbin/gpm -m /dev/mouse -t p
root 2703 1 0 18:08 tty1 00:00:00 /sbin/agetty 38400 tty1 linux
root 2704 1 0 18:08 tty2 00:00:00 /sbin/agetty 38400 tty2 linux
root 2705 1 0 18:08 tty3 00:00:00 /sbin/agetty 38400 tty3 linux
root 2706 1 0 18:08 tty4 00:00:00 /sbin/agetty 38400 tty4 linux
root 2707 1 0 18:08 tty5 00:00:00 /sbin/agetty 38400 tty5 linux
root 2708 1 0 18:08 tty6 00:00:00 /sbin/agetty 38400 tty6 linux
nobody 2789 2699 0 18:09 ? 00:00:00 /usr/sbin/httpd
nobody 2790 2699 0 18:09 ? 00:00:00 /usr/sbin/httpd
nobody 2791 2699 0 18:09 ? 00:00:00 /usr/sbin/httpd
nobody 2792 2699 0 18:09 ? 00:00:00 /usr/sbin/httpd
nobody 2793 2699 0 18:09 ? 00:00:00 /usr/sbin/httpd
root 2796 2464 0 18:10 ? 00:00:00 sshd: root@pts/0
root 2798 2796 0 18:10 pts/0 00:00:00 -bash
root 2824 1 0 18:13 ? 00:00:00 /usr/sbin/inetd
root 2844 2798 0 18:20 pts/0 00:00:00 ps -ef
 
Old 10-23-2004, 10:37 AM   #2
gsgleason
Member
 
Registered: Oct 2004
Posts: 69

Original Poster
Rep: Reputation: 15
this is weird.
Quote:
gsgleaso@gsgleason:~$ /etc/rc.d/rc.bind start
Starting BIND: /usr/sbin/named
gsgleaso@gsgleason:~$ /etc/rc.d/rc.bind restart
named: no process killed
Starting BIND: /usr/sbin/named
 
Old 10-23-2004, 01:56 PM   #3
pitt30
Member
 
Registered: Jan 2004
Posts: 53

Rep: Reputation: 16
try here
http://www.unixwiz.net/techtips/bind9-chroot.html

worked like a charm, its even chroot'ed for added security
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
BIND not loading named.ca Flawless Linux - Newbie 1 12-17-2004 11:29 AM
bind and named Red Squirrel Linux - Software 3 04-25-2004 09:49 PM
BIND / named r3ekon Linux - Newbie 6 10-16-2003 05:33 PM
Bind / named 80s Linux - Networking 3 03-20-2003 07:47 AM
BIND / named issues Ratclaws Linux - Networking 2 03-08-2002 01:09 AM

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

All times are GMT -5. The time now is 01:44 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration