LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux > 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

Tags used in this thread
Popular LQ Tags ,

Reply
 
Thread Tools
Old 10-22-2009, 07:51 AM   #1
jose_tk
LQ Newbie
 
Registered: Sep 2007
Location: Dubai
Distribution: RH, OpenSUSE and Ubuntu
Posts: 13
Thanked: 0
DNS - MX record not getting from dig


[Log in to get rid of this advertisement]
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
linuxsuse jose_tk is offline  
Tag This Post ,
Reply With Quote
Old 10-22-2009, 08:36 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 5,040
Thanked: 222
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.
linuxslackware bathory is offline     Reply With Quote
Old 10-22-2009, 10:24 AM   #3
jonspeck
LQ Newbie
 
Registered: Mar 2004
Location: Pleasant Prairie, WI
Distribution: Fedora/SUSE/Ubuntu/Knoppix/Centos
Posts: 2
Thanked: 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 10:28 AM..
windows_xp_2003 jonspeck is offline     Reply With Quote
Old 10-23-2009, 05:07 AM   #4
jose_tk
LQ Newbie
 
Registered: Sep 2007
Location: Dubai
Distribution: RH, OpenSUSE and Ubuntu
Posts: 13
Thanked: 0

Original Poster
Thanks bathory and jonspeck.
Your suggestions are perfect and neat.

With thanks
Jose
linuxubuntu jose_tk is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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


All times are GMT -5. The time now is 02:46 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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration