DNS configuration

Ask questions about your setup or get help installing ZCS server (ZD section below).
Post Reply
FANTAHUNT
Posts: 2
Joined: Sat Oct 01, 2016 9:24 am

DNS configuration

Post by FANTAHUNT »

before installing zimbra I try to configur my DNS. I have the following ip and DNS(puchesed from the providors)
IP: 10.10.1.3
Domain: dbe.com.et
server host name: mail

$TTL 1D
@ IN SOA ns1.dbe.com.et. root.dbe.com.et.(
0;
1D;
1H;
1w;
3H);
@ IN NS sn1.dbe.com.et.
@ IN MX 0 mail.dbe.com.et.
ns1 IN A 10.10.1.3
mail IN A 10.10.1.3

the problem is when I restart the service
service named restart
the system displays the following error
[root@mail sysadmin]# touch /var/named/db.dbe.com.et
[root@mail sysadmin]# chgrp named /var/named/db.dbe.com.et
[root@mail sysadmin]# vi /var/named/db.dbe.com.et
[root@mail sysadmin]# vi /var/named/db.dbe.com.et
[root@mail sysadmin]# service named restart
Redirecting to /bin/systemctl restart named.service
Job for named.service failed because the control process exited with error code. See "systemctl status named.service" and "journalctl -xe" for details.
[root@mail sysadmin]#
phoenix
Ambassador
Ambassador
Posts: 27272
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: DNS configuration

Post by phoenix »

Configuring a DNS server is nothing to do with Zimbra, checking the journal will tell you what the error is, did you read view it? There is also an article in the wiki (and details all over these forums) about configuring a Split DNS, have you read that or searched for the information)?
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
FANTAHUNT
Posts: 2
Joined: Sat Oct 01, 2016 9:24 am

can send email but I cant recieve from any

Post by FANTAHUNT »

hello dear I install zcs 8.6 open source install and configured as follows
I have domain: dbe.com.et
server mail
Ip 10.10.1.3
i configure the following on /etc/named.conf
options {
listen-on port 53 { 127.0.0.1; any; };
listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
allow-query { localhost; any;};
recursion yes;

dnssec-enable yes;
dnssec-validation yes;

/* Path to ISC DLV key */
bindkeys-file "/etc/named.iscdlv.key";

managed-keys-directory "/var/named/dynamic";
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};

zone "." IN {
type hint;
file "named.ca";
};

zone "dbe.com.et" IN {
type master;
file "db.dbe.com.et";
allow-update { none; };
};


include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";

and also i configured vi /var/named/db.dbe.com.et
$TTL 1D
@ IN SOA ns1.dbe.com.et. root.dbe.com.et. (
0 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
@ IN NS ns1.dbe.com.et.
@ IN MX 0 mail.dbe.com.et.
ns1 IN A 10.10.1.3
mail IN A 10.10.1.3

finaly i did this on
[root@mail Desktop]# nslookup mail.dbe.com.et
Server: 10.10.1.3
Address: 10.10.1.3#53

Name: mail.dbe.com.et
Address: 10.10.1.3


when i send email from gmail i receive the following errors so please anybody help me to resolve this issues

Delivery to the following recipient failed permanently:

admin@dbe.com.et

Technical details of permanent failure:
DNS Error: 31239790 DNS type 'mx' lookup of dbe.com.et responded with code NOERROR
31239790 DNS type 'mx' lookup of dbe.com.et had no relevant answers.
31239790 DNS type 'aaaa' lookup of dbe.com.et responded with code NOERROR
31239790 DNS type 'aaaa' lookup of dbe.com.et had no relevant answers.
31239790 DNS type 'a' lookup of dbe.com.et responded with code NOERROR
31239790 DNS type 'a' lookup of dbe.com.et had no relevant answers.

we have registered domain name dbe.com.et, and also I check this from https://mxtoolbox.com/ it works but still we cant receive any emails from external
phoenix
Ambassador
Ambassador
Posts: 27272
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: DNS configuration

Post by phoenix »

I've already told you this, go to the wiki Split DNS article and read that on how to configure the DNS for your ZCS server on a LAN - you can also check your configuration by running all the commands in the 'Verify....' section of that article.
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
ravikumars
Posts: 1
Joined: Fri Nov 11, 2016 5:12 pm

Re: DNS configuration

Post by ravikumars »

I have configured My DNS A record and MX record on godaddy and make NAT to point out Live IP to my Zimbra mail server. I am getting still DNS none mx record for mydomain.com. Please share your expertise.
Thanks
Last edited by ravikumars on Tue Jul 10, 2018 11:17 am, edited 1 time in total.
phoenix
Ambassador
Ambassador
Posts: 27272
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: DNS configuration

Post by phoenix »

ravikumars wrote:I have configured My DNS A record and MX record on godaddy and make NAT to point out Live IP to my Zimbra mail server. I am getting still DNS none mx record for mydomain.com. Please share your expertise.
If you take the time to read my post immediately above yours or search the forums or the wiki article I mentioned then you would know that the answer is a Split DNS.
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
phoenix
Ambassador
Ambassador
Posts: 27272
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: DNS configuration

Post by phoenix »

ravikumars wrote:I have configured My DNS A record and MX record on godaddy and make NAT to point out Live IP to my Zimbra mail server. I am getting still DNS none mx record for mydomain.com. Please share your expertise.
Thanks
I see you've edited this post. You need to read and understand the wiki article on Split DNS, there is also a section that tells you how to verify if your records are correct. If you're not getting the DNS reply as shown in that article then your configuration is incorrect (i.e. it has errors). The answers are all in that article and you've not given any details of your problem other than 'it doesn't work' - I'm not telepathic, you know. ;)
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
Post Reply