LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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
 
LinkBack Search this Thread
Old 10-22-2009, 06:51 AM   #1
jose_tk
LQ Newbie
 
Registered: Sep 2007
Location: New Delhi
Distribution: Ubuntu, SUSE, RedHat
Posts: 15

Rep: Reputation: 0
DNS - MX record not getting from dig


Dear all,

After I create a new zone entry and RR for a mydomain.com,
the Nameserver not offering the MX record.

The following is my RR file in the master

$TTL 1D
@ SOA ns1.mynameser.net. dnsmaster.mydomain.com. ( 2009102215
3H
1H
1H
1H )
IN NS ns1.mynameser.net.
IN NS ns2.mynameser.net.
IN NS ns25.domaincontrol.com.
IN NS ns26.domaincontrol.com.
@ IN 7200 A 80.227.124.13
mail.mydomain.com IN 7200 A 80.227.124.3
IN 7200 MX 10 mail.mydomain.com.
www IN 7200 CNAME mydomain.com.


While 'dig' ing for MX, I am getting the following information.

root#>dig @ns1.mynameser.net mydomain.com MX

; <<>> DiG 9.3.3rc2 <<>> @ns1.mynameser.net mydomain.com MX
; (1 server found)
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 25607
;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

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

;; AUTHORITY SECTION:
mydomain.com. 3600 IN SOA ns1.mynameser.net. dnsmaster.mydomain.com. 2009102215 10800 3600 3600 3600

;; Query time: 0 msec
;; SERVER: 80.227.124.6#53(80.227.124.6)
;; WHEN: Thu Oct 22 15:46:33 2009
;; MSG SIZE rcvd: 105

Is something wrong in the RR file?
Appreciate your time.

TIA
Jose
 
Old 10-22-2009, 07:36 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,772

Rep: Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294
You have a couple of errors in the zone file:
You have mixed ttl with class IN. You missed the trailing dot at mail.mydomain.com. Also move the MX record right after the NS records and make sure you leave at least a space before IN.
If you need the ttl then use this zone file:
Code:
$TTL 1D
@ SOA ns1.mynameser.net. dnsmaster.mydomain.com. ( 
2009102216
3H
1H
1H
1H )
 IN NS ns1.mynameser.net.
 IN NS ns2.mynameser.net.
 IN NS ns25.domaincontrol.com.
 IN NS ns26.domaincontrol.com.
 7200 IN  MX 10 mail.mydomain.com.
@ 7200 IN  A 80.227.124.13
mail.mydomain.com. 7200 IN  A 80.227.124.3
www 7200 IN  CNAME mydomain.com.
 
Old 10-22-2009, 09:24 AM   #3
jonspeck
LQ Newbie
 
Registered: Mar 2004
Location: Pleasant Prairie, WI
Distribution: Fedora/SUSE/Ubuntu/Knoppix/Centos
Posts: 2

Rep: Reputation: 0
I agree with bathony response, may I offer the following zone file based on your material as an alternative.

Code:
$TTL 1D
@		IN  	SOA  	ns1.mynameser.net. dnsmaster.mydomain.com. ( 
					2009102217	; Serial
					3H		; Refresh
					1H		; Retry
					1H		; Expire
					1H 		: Minimum TTL
					)

; Name Servers				
		IN 	NS 	ns1.mynameser.net.
		IN 	NS 	ns2.mynameser.net.
		IN 	NS 	ns25.domaincontrol.com.
		IN 	NS 	ns26.domaincontrol.com.

; MX Record
		IN 	MX 10 	mail.mydomain.com.	

; Names
		IN 	A 	80.227.124.13		; NULL record
mail		IN 	A 	80.227.124.3
www 		IN 	CNAME 	mydomain.com.
In addition, here are a couple of links on DNS to assist you.

http://tldp.org/HOWTO/DNS-HOWTO-7.html
http://www.freebsd.org/doc/en/books/...twork-dns.html

Hope it helps.
Jon

Last edited by jonspeck; 10-22-2009 at 09:28 AM.
 
Old 10-23-2009, 04:07 AM   #4
jose_tk
LQ Newbie
 
Registered: Sep 2007
Location: New Delhi
Distribution: Ubuntu, SUSE, RedHat
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks bathory and jonspeck.
Your suggestions are perfect and neat.

With thanks
Jose
 
  


Reply

Tags
dns, mx


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
PTR in DIG DNS palisetty_suman Linux - Newbie 7 05-04-2009 08:27 AM
Need help setting up DNS- dig almost works tbsmith Linux - Server 6 01-29-2008 08:03 PM
dig command questions DNS emailssent Linux - Networking 2 09-24-2004 09:27 AM
dig command questions DNS emailssent Linux - Networking 3 09-22-2004 05:56 AM
dns question (dig maybe) lenlutz Linux - Networking 2 10-03-2003 07:26 AM


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