LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 10-11-2003, 02:26 PM   #1
r3ekon
LQ Newbie
 
Registered: Oct 2003
Location: Northwood - Ohio
Distribution: Red Hat 9
Posts: 11

Rep: Reputation: 0
Unhappy BIND / named


Hello,

Sorry Moderators if this was posted in an inappropriate forum!
I have searched and searched for guides to setting up DNS with BIND, and I can almost swear that I am doing it right...Heres my situation.

I installed Red Hat 9 with the BIND package, and I setup webmin after the installation was complete. BIND seems to be working, because at a point I had the name resolving to its IP address.

My problem is I couldn't get the MX record to work right, nor would any A records work, so I recreated the zone, and now none of it works. Heres my info,

Domain: pctechcentral.com

My IP: 65.31.50.114

Name Servers: ns1.pctechcentral.com and ns2.pctechcentral.com both goto 65.31.50.114

in my named.conf this is what I have...


Code:
 
controls { 
inet 127.0.0.1 allow { localhost; } key{ rndckey; };
};

include "/etc/named.custom";

include "/etc/rndc.key";

zone "0.0.127.in-addr.arpa" {
        type master;
        file "0.0.127.in-addr.arpa.zone";
};

zone "localhost" {
       type master;
       file "localhost.zone";
};


zone "pctechcentral.com" {
        type master;
        file "/var/named/pctechcentral.com.zone";
};

and this is my pctechcentral.com.zone file...


Code:
$ttl 38400
pctechcentral.com. IN SOA  rek-serv. (
  10801
  3600
  6048002
  38400
  38600 )
  IN NS 65.31.50.114
  IN MX 10 65.31.50.114
pctechcentral.com. IN  A 65.31.50.114

ns1   IN A 65.31.50.114
www   IN A 65.31.50.114
mail   IN A 65.31.50.114


This server is under a router but I know DNS works, as it worked under 2000..

Where am I going wrong?

One more thing...When I do a rndc status, it always says 5 zones. Im thinking that its not using the right named.conf file, but I even did a named -c /var/named.conf .

I have no idea at this point, I'm getting frusterated because I run an email service for about 15 people and they are soon to hound me down...save me ?
 
Old 10-11-2003, 03:17 PM   #2
r3ekon
LQ Newbie
 
Registered: Oct 2003
Location: Northwood - Ohio
Distribution: Red Hat 9
Posts: 11

Original Poster
Rep: Reputation: 0
I think I sorta narrowed the problem down......
I typed named -g and this is what I got.....

Code:
[root@localhost root]# named -g
Oct 11 16:05:34.033 starting BIND 9.2.1 -g
Oct 11 16:05:34.036 using 1 CPU
Oct 11 16:05:34.049 loading configuration from '/etc/named.conf'
Oct 11 16:05:34.087 no IPv6 interfaces found
Oct 11 16:05:34.089 listening on IPv4 interface lo, 127.0.0.1#53
Oct 11 16:05:34.093 binding TCP socket: address in use
Oct 11 16:05:34.094 listening on IPv4 interface eth0, 192.168.0.2#53
Oct 11 16:05:34.095 binding TCP socket: address in use
Oct 11 16:05:34.108 /etc/named.conf:15: couldn't add command channel 127.0.0.1#953: address in use
Oct 11 16:05:34.110 ignoring config file logging statement due to -g option
Oct 11 16:05:34.111 couldn't open pid file '/var/run/named/named.pid': File Exists
Oct 11 16:05:34.112 exiting (due to fatal error)
[root@localhost root]#
Any suggestions? Please =)

My guess is the named.pid file is causing myy troubles.....I don't understand why its doing that though, the pid file is emtpy if I open it and view it from pico....Whats my problem here? And for my last questions.... Are all the "address in use" messages good? =\ THanks guys!
 
Old 10-14-2003, 06:51 PM   #3
spooge
Member
 
Registered: Nov 2001
Location: n chicago, IL. USA
Distribution: Slackware
Posts: 307

Rep: Reputation: 31
.
 
Old 10-15-2003, 09:56 PM   #4
olddog55
LQ Newbie
 
Registered: Jul 2003
Distribution: Debian Sarge & Woody, RedHat, tomsrtbt
Posts: 11

Rep: Reputation: 0
Looks like something else is attaching to port 53. (DNS) You don't happen to have another instance of named running do you? Or some other app? Post a 'ps -ax' and 'netstat -a' (or whatever your os requires for a full listing...)
 
Old 10-15-2003, 10:20 PM   #5
r3ekon
LQ Newbie
 
Registered: Oct 2003
Location: Northwood - Ohio
Distribution: Red Hat 9
Posts: 11

Original Poster
Rep: Reputation: 0
I fixed it. I think I deleted the named.pid and did a touch /etc/named/named.pid then stopped named and restarted it. Works now, thanks for the replies!
 
Old 10-16-2003, 01:42 AM   #6
daveo
Member
 
Registered: Sep 2003
Location: Holland
Distribution: Gentoo 1.4, Slackware
Posts: 196

Rep: Reputation: 30
Re: BIND / named

Quote:
Originally posted by r3ekon
Hello,

Sorry Moderators if this was posted in an inappropriate forum!
I have searched and searched for guides to setting up DNS with BIND, and I can almost swear that I am doing it right...Heres my situation.

I installed Red Hat 9 with the BIND package, and I setup webmin after the installation was complete. BIND seems to be working, because at a point I had the name resolving to its IP address.

My problem is I couldn't get the MX record to work right, nor would any A records work, so I recreated the zone, and now none of it works. Heres my info,



and this is my pctechcentral.com.zone file...


Code:
$ttl 38400
pctechcentral.com. IN SOA  rek-serv. (
  10801
  3600
  6048002
  38400
  38600 )
  IN NS 65.31.50.114
  IN MX 10 65.31.50.114
pctechcentral.com. IN  A 65.31.50.114

ns1   IN A 65.31.50.114
www   IN A 65.31.50.114
mail   IN A 65.31.50.114
I think when using one IP, you should not make more A-records then 1 which is the actuall IP. www and mail, and more of such are "allways" aliases (CNAMES). It might also be a good idea to use PTR records, which will enable reverse lookup

Have a look at an example I wrote at:

http://www.linuxaddicted.org/index.p...&pid=24&dbid=1

Hope this makes things a bit clear for you,




 
Old 10-16-2003, 05:33 PM   #7
r3ekon
LQ Newbie
 
Registered: Oct 2003
Location: Northwood - Ohio
Distribution: Red Hat 9
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks!

I never really thought of that, thanks alot for the suggestion. Makes sense =)

I am still getting used to linux so I was more focused on just getting it to work.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
BIND -named.conf ryanc75 Linux - General 3 09-19-2005 02:57 AM
named / bind error saurabh142857 Linux - Software 2 06-27-2005 10:30 AM
bind and named Red Squirrel Linux - Software 3 04-25-2004 09:49 PM
Bind / named 80s Linux - Networking 3 03-20-2003 07:47 AM
Running Bind/named PatC Linux - Networking 4 09-04-2002 11:38 AM


All times are GMT -5. The time now is 03:24 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration