Configuring bind dns
Hello everybody, I am trying to install zimbra on ubuntu server 16 and making the mail server and dns server the same server which is the zimbra server. I followed up the steps in these 2 links which are similar in steps https://linoxide.com/ubuntu-how-to/s...ite-ubuntu-16/ and http://linux-sys-adm.com/how-to-inst...-step-by-step/ (despite the wrong ip subnetting in the first one). I faced problems first starting the bind service and the error unknown rr type and unkown class/type, I solved it by adding the Code:
@ IN Code:
@ NS mail. But when I test the dns with dig domain-name I don't got the same result in the links, and if continue to install zimbra it will give me that an mx record must be configured in this domain. My files are same as the links but instead my domain name is sy.local. I searched a lot on the internet for a solution but didn't find anything. Help please. I will show the files to be more clear. named.conf: Code:
include "/etc/bind/named.conf.options"; Code:
zone "sy.local" { Code:
options { Code:
$TTL 604800 Code:
$TTL 3D Code:
$TTL 3D Code:
127.0.0.1 localhost Code:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) Code:
root@mail:~# dig sy.local |
Hi kingk110,
You have some errors in your forward zone file. There must be at least one blank space in front of the RRs starting with IN or else you should use a hostname of a FQDN. So the zonefile should be like this (I've used tabs for readability) Code:
$TTL 604800 Regards |
Quote:
|
If I add @ at the begining of the error lines only and keeping the hostname and domain in db.0.0.127 and domain only in db.ip.ip.ip (@ NS mail.sy.local. and @ NS sy.local. )the bind will start with no errors but I will get this error while checking named-checkzone:
Code:
root@mail:~# named-checkzone sy.local /etc/bind/db.0.0.127 Code:
root@mail:~# /etc/init.d/bind9 status |
Quote:
Code:
named-checkzone sy.local /etc/bind/db.sy.local Quote:
|
[QUOTE=bathory;5816734]Wrong syntax! Use the correct zone name with the appropriate zone file:
Code:
named-checkzone sy.local /etc/bind/db.sy.local I used it and it was loaded with no answer in dig but I tried to check db files also if there is a problem. Code:
root@mail:~# named-checkzone sy.local /etc/bind/db.sy.local |
Quote:
So what happens if you try to resolve your hostname? Code:
dig mail.sy.local |
Quote:
Code:
root@mail:~# dig mail.sy.local I installed zimbra now with mx record but don't know what was the problem maybe editing files through winscp and saving directly. Thanks a lot bathory. I appreciate your help. |
All times are GMT -5. The time now is 09:06 PM. |