LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-14-2008, 11:58 PM   #1
romeo_tango
Member
 
Registered: Nov 2006
Distribution: Mint
Posts: 148

Rep: Reputation: 15
a few questions about BIND (MX and Reverse)


hi, i just setup named in a box. This box #1 is acting as the DNS server for my LAN. The domain I added in the box #1 is able to be resolved by the LAN which the DNS server is pointing to it. So, I called that named is properly working rite now.

What confuses me are :

1). The MX Records. I use this mxtoolbox [dot] com/index.aspx page to check my MX. Sometimes it shows a valid records like this :

Preference Host Name IP Address TTL
30 a.domain.com 1.2.3.4 3600

but if i refreshed the page, sometimes it will shows :

Preference Host Name IP Address TTL
10 a.domain.com.domain.com 1.2.3.4 3600

Why is that happening? If I looked it up a few times, it will shows correct values again.. Did I misconfigured something in named conf or its just the mxtoolbox.com page that causing that?

This is how MX configured in my zone file :

Code:
$TTL    3600
$ORIGIN domain.com.
@       IN      SOA     a.domain.com. admin.domain.com. (
                                        2008101009      ; serial
                                        3H              ; refresh
                                        15M             ; retry
                                        1W              ; expiry
                                        1D )            ; minimum

                IN NS           ns1.domain.com.
                IN MX   30      ex.domain.com.
                
                IN A            1.2.3.4

mail             IN A            1.2.3.4
is there anything incorrect ?


2). Do I need to add reverse zone? sorry but I still not understand about what this reverse zone for.

Last edited by romeo_tango; 10-14-2008 at 11:59 PM.
 
Old 10-15-2008, 12:16 AM   #2
WorldIsNotFair
Member
 
Registered: Jun 2008
Location: Jakarta
Distribution: CentOS 5
Posts: 89

Rep: Reputation: 17
1. have you tried to query your mx record from client with host -t mx [host] or dig -t mx [host] ,
since you only have 1 mx record, try to change 30 to 10.

2. reverse zone is purposed to resolve ip to hostname.

hope help.
 
Old 10-15-2008, 01:15 AM   #3
romeo_tango
Member
 
Registered: Nov 2006
Distribution: Mint
Posts: 148

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by WorldIsNotFair View Post
1. have you tried to query your mx record from client with host -t mx [host] or dig -t mx [host] ,
since you only have 1 mx record, try to change 30 to 10.
hmm, there are 2 conditions here :
- If I set the DNS Server is the box #1 which I configured, the dig will return okay like this

Code:
# dig -t mx domain.com

; <<>> DiG 9.2.4 <<>> -t mx domain.com
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 49335
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 3, ADDITIONAL: 6

;; QUESTION SECTION:
;domain.com.                  IN      MX

;; ANSWER SECTION:
domain.com.           3600    IN      MX      30 ex.domain.com.

;; AUTHORITY SECTION:
domain.com.           3600    IN      NS      ns1.domain.com

;; ADDITIONAL SECTION:
ns1.domain.com.  3600    IN      A       1.2.3.4

;; Query time: 76 msec
;; SERVER: 1.2.3.4#53(1.2.3.4)
;; WHEN: Wed Oct 15 13:03:26 2008
;; MSG SIZE  rcvd: 260
- if I use other public DNS, the dig will return :

Code:
# dig -t mx domain.com

; <<>> DiG 9.2.4 <<>> -t mx domain.com
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 44551
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 3, ADDITIONAL: 3

;; QUESTION SECTION:
;domain.com.                  IN      MX

;; ANSWER SECTION:
domain.com.           3592    IN      MX      10 ex.domain.com.domain.com.

;; AUTHORITY SECTION:
domain.com.           3600    IN      NS      ns1.domain.com

;; ADDITIONAL SECTION:
ns1.domain.com.  3600    IN      A       1.2.3.4

;; Query time: 23 msec
;; SERVER: 202.x.x.x#53(202.x.x.x)
;; WHEN: Wed Oct 15 13:06:46 2008
;; MSG SIZE  rcvd: 204
For an additional information, this is a migrated DNS from a Win2K Box. The Win2K Box is now already offline.


Quote:
2. reverse zone is purposed to resolve ip to hostname.
sorry, i mean, do I need to add this zone ?

Thanks for your help Sir.

Last edited by romeo_tango; 10-15-2008 at 01:16 AM.
 
Old 10-15-2008, 01:26 AM   #4
romeo_tango
Member
 
Registered: Nov 2006
Distribution: Mint
Posts: 148

Original Poster
Rep: Reputation: 15
I also try from another ISP's DNS and this what I've got :

Code:
# host -t mx domain.com
domain.com mail is handled by 30 ex.domain.com.

# host -t mx domain.com
domain.com mail is handled by 10 ex.domain.com.domain.com.

# host -t mx domain.com
domain.com mail is handled by 30 ex.domain.com.

# host -t mx domain.com
domain.com mail is handled by 10 ex.domain.com.domain.com

# host -t mx domain.com
domain.com mail is handled by 30 ex.domain.com.
hmm... :-? did i misconfigured something?
 
Old 10-15-2008, 01:46 AM   #5
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
I can't give you any info about the webapp that configures your DNS zone files and named.conf file. if dig is giving the correct answers using your configured server, this is good confirmation.

Perhaps the other results are from recent cached resutls, not yet timed out?

Make sure you have A records for ns1.domain.com. and ex.domain.com. referenced in your zone file as;

Code:
                IN NS           ns1.domain.com.
                IN MX   30      ex.domain.com.
Yes, you should configure the rDNS side as well. It is trivial to do.
 
Old 10-15-2008, 02:00 AM   #6
WorldIsNotFair
Member
 
Registered: Jun 2008
Location: Jakarta
Distribution: CentOS 5
Posts: 89

Rep: Reputation: 17
perhaps its not been updated on public dns like mr C posted, since you said that you migrate it from win2k box, when

exactly u migrate it ?

You should conf reverse dns, since nowdays some spam software use this method to confirm the sender domain.

hope help.

Jakarta heh,

aku jg jakarta hehehe.
 
Old 10-15-2008, 03:15 AM   #7
romeo_tango
Member
 
Registered: Nov 2006
Distribution: Mint
Posts: 148

Original Poster
Rep: Reputation: 15
haha.. i didn't notice it earlier. jakarta toh..

anyway, yes, i just migrate it yesterday and perhaps i just need to wait yah. what made me confuse is that ex.domain.com.domain.com. Where do that come from..

about reverse dns.. after reading few helps, i guess i've got the point.. and am trying to configure it rite now.

Thanks
 
Old 10-15-2008, 10:47 AM   #8
carlmarshall
Member
 
Registered: Jan 2004
Location: North Yorkshire, UK
Distribution: Centos 5
Posts: 133

Rep: Reputation: 16
Just a thought. Is the new serial higher than the old Windows one? I've seen windows use some very strange serial numbers for zone files.

Carl.
 
  


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
Please help with reverse resolving in BIND GSMD Linux - Networking 4 01-12-2007 04:22 AM
Bind and reverse lookup, something ain't right. Sizam Linux - Networking 1 04-25-2005 06:51 PM
bind reverse lookup thesnaggle Linux - Software 1 03-11-2004 06:19 PM
Bind reverse lookup Kostko Linux - Networking 2 12-07-2002 09:06 AM
Cant get a reverse lookup in BIND to work phek Linux - Networking 2 10-23-2001 12:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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