[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gNewSense-users] [OT] Can't receive emails from another machine
From: |
Stayvoid |
Subject: |
Re: [gNewSense-users] [OT] Can't receive emails from another machine |
Date: |
Sat, 11 Aug 2012 07:13:22 +0400 |
Hi,
Additional info.
Zone file (registrar's web panel):
@ 10800 IN A <public ip>
www 10800 IN A <public ip>
@ 10800 IN AAAA <public ipv6>
@ 10800 IN MX 10 <boxname>.<domain name>.
Name servers (registrar's web panel):
DNS1: a.dns.<registrar's domain>
DNS2: b.dns.<registrar's domain>
DNS3: c.dns.<registrar's domain>
I guess that this is the cause of the problem.
Should I add my name server here (i.e. <boxname>.<domain name>)?
Should I remove the existing name servers?
These servers will appear in the last output of dig.
$ dig +norec ns <domain name> @a.root-servers.net
[...]
$ dig +norec ns <domain name> @<name server from the previous AUTHORITY SECTION>
[...]
;; AUTHORITY SECTION:
<domain name>. 86400 IN NS c.dns.<registrar's domain>.
<domain name>. 86400 IN NS b.dns.<registrar's domain>.
<domain name>. 86400 IN NS a.dns.<registrar's domain>.
Let's pick one of them:
$ dig +norec ns <domain name> @c.dns.<registrar's domain>.
[...]
;; flags: qr aa; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 0
[...]
;; ANSWER SECTION:
<domain name>. 10800 IN NS a.dns.<registrar's domain>.
<domain name>. 10800 IN NS b.dns.<registrar's domain>.
<domain name>. 10800 IN NS c.dns.<registrar's domain>.
Let's pick another one:
$ dig +norec ns <domain name> @a.dns.<registrar's domain>.
(The output is the same.)
One more time:
$ dig +norec ns <domain name> @b.dns.<registrar's domain>.
(Same output.)
I thought that I should be able to see my own name server in the
output (i.e. <boxname>.<domain name>.) Is this correct?
/etc/bind/db.<domain name>:
$TTL 604800
<domain name>. IN SOA <boxname>.<domain name>. <user>.<domain name>. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
<domain name>. IN NS <boxname>.<domain name>.
;
<domain name>. IN MX 10 <boxname>.<domain name>.
<boxname> IN A <public ip>
www IN A <public ip>
<domain name>. IN AAAA <public ipv6>
/etc/bind/db.<last octet>:
$TTL 604800
$ORIGIN <reversed public ip (three octets)>.IN-ADDR.ARPA.
@ IN SOA <domain name>. <user>.<domain name>. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
IN NS <boxname>.<domain name>.
/etc/bind/named.conf.local:
zome "<domain name>" {
type master;
file "/etc/bind/db.<domain name>";
};
zone "<reversed public ip>.in-addr-arpa" {
type master;
notify no;
file "/etc/bind/db.<last octet>";
};
Cheers