LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-23-2007, 03:38 PM   #1
awilisch
Member
 
Registered: Dec 2003
Location: Issaquah, WA
Posts: 36

Rep: Reputation: 15
Bind9 MX Record issues


I'm running a bind9 server on Gentoo.

I have two domain names setup. If I go into nslookup, it will find any server name i hand to it. The problem I'm having is it's refusing to recognize the MX records I put in. If I go into nslookup, instruct it to use my dns server, set it's type to mx and enter the domain name it never comes back with anything. Below is the domain I setup for my internal network.

$ttl 38400
collective.local. IN SOA cube02.shadowrealms.cc. awilisch.net-collective.net. (
1169585355
10800
3600
604800
38400 )
collective.local. IN NS cube02.shadowrealms.cc.
cube04.collective.local. IN A 10.1.70.68
cube02.collective.local. IN A 10.1.70.60
mythtv1.collective.local. IN A 10.1.70.80
mail01.collective.local. IN A 10.1.70.68
mail02.collective.local. IN A 10.1.70.80
mail01.collective.local. IN MX 10 mail01.collective.local
mail02.collective.local. IN MX 9 mail02.collective.local

Doing a dig on the domain names shows the question, but never an answer section. Doing a dig on another domain name just as a test will show the appropriate mail server. I'm unsure what I'm doing wrong. The setups were done using webmin 1.30. From examples I've found on other websites everything looks like it's correct, but the mx records still are not working.

As far as the domain name I'm using goes, this is for internal use only. I do have another registered domain name that I setup on another gentoo server and I was getting the same results that I got above so I don't think it's the domain name.

Any help would be greatly appreciated.

--Aric
 
Old 01-23-2007, 07:03 PM   #2
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
Your zone file is unusable. You have 2 entries for mail01.collective.local., and the first is the A record, so you won't get to your MX record, which is also malformed.

It should look like this:

Code:
3600    IN      MX      10 mail01.collective.local.
mail01.collective.local. IN A 10.1.70.68
Also, you won't get much useful DNS info out of nslookup. It is a horrible tool, without many options that you will want for looking up DNS info. The linux tool is dig. Running:

Code:
dig -t mx collective.local @localhost
on the DNS server will give better info than nslookup. Read the manpages on dig, it is a very robust tool with many options to it.

Peace,
JimBass
 
Old 01-23-2007, 11:48 PM   #3
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
That zone file actually looks pretty much OK to me. You are missing the periods at the end of your MX record values, though (that's broken).

Oh, actually you're not understanding how MX records are supposed to work. You need it in the format:
domain.com. IN MX # mailhost.

Fixing your MX records would be...
Code:
collective.local. IN MX 10 mail01.collective.local.
collective.local. IN MX 9 mail02.collective.local.
 
  


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
BInd9 and VIEW unkn0wn Linux - Networking 2 07-19-2006 08:04 AM
Bind9 help!! Fredstar Linux - Newbie 10 08-30-2005 09:47 PM
Unable to record mic-in with SoundBlaster Live! while able to record other sources max76230 Linux - Newbie 2 03-14-2005 04:31 AM
Bind9 tandre Linux - Software 1 04-08-2003 09:29 AM
bind9 unixkid Linux - Networking 3 08-30-2002 02:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:02 AM.

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