Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.