Ok looking for someone with DNS knowledge to help me.
This is the current situation.
We have 6 different mail domains hosted with a company (the DNS for the domains is housed here - call them OLD.NS1-2) - all of these domains are production and have to be moved in-house. We have chose Ubuntu 6.10 server and Zimbra to be the desired solution.
We sit behind a firewall and do NAT so split DNS needs to be used and ports 25 and 110 have been opened. We do not have our own in-house DNS. We have the two DNS server addresses from our ISP (call them ISP.NS1-2).
We have decided to use dnsmadeeasy.com as our DNS when we migrate the mail servers. They have provided 5 name servers (call them NEW.NS1-5). We have moved a small mail domain (mail.domain2.com) to the new DNS provider for testing.
The plan is to build the Ubuntu Server with a default domain of mail.domain1.com (our largest mail domain) and then add the other domains in using the Zimbra Multiple Domain functionality.
Steps so far
1. Built the server, can browse the internet.
2. cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.1.xxx mail.domain1.com mail
3. cat /etc/resolv.conf
nameserver ISP.NS1
nameserver ISP.NS2
4. host `hostname`
Host mail not found: 3(NXDOMAIN)
5. nslookup mail.domain1.com
Server: ISP:NS1
Address: ISP:NS1#53
Non-authorative answer:
Name: mail.domain1.com
Address: External IP addr
6. apt-get install bind9
7. Ok - now I use -
I got Ubuntu and Zimbra working
8. Configure named.conf.options and enter the DNS forwarders
forwarders {
ISP.NS1;
ISP.NS2;
};
9. Append the zone to the named.conf.local file
// We are the master server for mail.domain.com
zone "mail.domain1.com" {
type master;
file "db.mail.domain1.com";
};
10. Create the Zone file "db.mail.domain1.com"
;
; Addresses and other host information.
;
@ IN SOA mail.domain.com. hostmaster.mail.domain.com. (
10118 ; Serial
43200 ; Refresh
3600 ; Retry
3600000 ; Expire
2592000 ) ; Minimum
; Define the nameservers and the mail servers
IN NS 192.168.1.xxx
IN A 192.168.1.xxx
IN MX 10 mail.domain1.com.
11. Modify the /etc/resolv.conf file with local ip addr as the name server & cat /etc/resolv.conf
nameserver 192.168.1.xxx
12: /etc/init.d/networking restart
13: /etc/init.d/bind9 reload
14. Ok so I can still browse the net
15. host `hostname`
Host mail not found: 3(NXDOMAIN)
16. nslookup mail.domain1.com
Server: 192.168.1.xxx
Address: 192.168.1.xxx#53
Non-authorative answer:
Name: mail.domain1.com
Address: External IP Addr
17. named-checkzone mail.domain1.com db.mail.domain1.com
zone mail.domain1.com/IN: loading master file db.mail.forexmgr.com: file not found
Resolution: Copied the db.mail.forexmgr.com to /etc/bind
This is strange as the named.conf.options specifies the directory it will look for it in /var/cache/bind
18. Reload again
19. host `hostname`
Host mail not found: 3(NXDOMAIN)
20. nslookup mail.domain1.com
Server: 192.168.1.xxx
Address: 192.168.1.xxx#53
Non-authorative answer:
Name: mail.domain1.com
Address: External IP Addr
21. named-checkzone mail.domain1.com db.mail.domain1.com
db.mail.forexmgr.com:4: no TTL specified using SOA MINTTL instead
db.mail.forexmgr.com:11: NS Record '192.168.1.xxx' appears to be an address
zone mail.forexmgr.com/IN: loaded serial 10118
OK
Alright this is the point I am at.
I am still getting the
Host mail not found: 3(NXDOMAIN) from the host `hostname` - I am sure this should resolve to the local ip addr of 192.168.1.15
Anyone any suggestions? Also does the config look correct?
Any help greatly appreciated, I would like to be sure the DNS is correct before I start the Zimbra install and configuration.
Thanks