Hi.
I changed domain from example.pl to example.com.pl (according to Zimbra Wiki Zmsetservername) with these steps:
- add new domain to DNS
Code:
$TTL 86400 ; 1 day
@ IN SOA ns1.example.com.pl. root.example.com.pl. (
2011051502 ; Serial
86400 ; Refresh 24h
900 ; Retry 15min
604800 ; Expire 1 week
86400 ) ; Minimum 1 day
@ IN NS ns1.example.com.pl.
@ IN NS ns1.other.org.
@ IN NS srvr.example.com.pl.
@ IN A 83.16.154.37
@ IN MX 10 srvr.example.com.pl.
@ IN TXT "v=spf1 ip4:12.12.12.12 a:srvr.example.com.pl -all"
ns1 604800 IN A 12.12.12.12
ns2 604800 IN A 13.13.13.13
wbsrvr IN A 13.13.13.13
www IN CNAME wbsrvr
srvr IN A 12.12.12.12
mail IN CNAME srvr
- remove old domain from DNS
- edit named.conf
- DNS restart
- go to maintenance mode (zmprov md domain.pl zimbraDomainStatus maintenance)
- edit /etc/hosts
Code:
srvr:/etc/bind# cat /etc/hosts
127.0.0.1 localhost
10.10.10.37 srvr.example.com.pl srvr
- edit /etc/network/interfaces
Code:
srvr:/etc/bind# cat /etc/network/interfaces
(...)
dns-nameservers 194.204.159.1 194.204.152.34
dns-search example.com.pl - edit /etc/resolv.conf
Code:
srvr:/etc/bind# cat /etc/resolv.conf
search exmaple.com.pl
nameserver 194.204.159.1
nameserver 194.204.152.34
- check if old domain presents in /etc (rgrep example.pl /etc/*)
Code:
srvr:/etc/bind# rgrep example.pl /etc/*
File /etc/aliases.db matches
- reboot machine
- check if old domain presents in zimbra config (zmlocalconfig | grep srvr.example.pl)
Now the situation is that
I cannot open website (site not found) and the zmcontrol status shows:
Code:
zimbra@srvr:~$ zmcontrol status
Unable to determine enabled services from ldap.
Enabled services read from cache. Service list may be inaccurate.
Host srvr.example.com.pl
antispam Running
antivirus Running
ldap Running
logger Stopped
zmlogswatchctl is not running
mailbox Stopped
zmmailboxdctl is not running.
mta Running
snmp Running
spell Running
stats Running
zmconfigd Stopped
zmconfigd is not running. so
I also cannot run zmprov command.