2011/03/17

Zimbra server status all red crosses

I always have this problem when configuring zimbra servers (everything is working fine but service have red crosses in the web gui). At this point I tried this and waiting if it will help :)

su - zimbra
zmsshkeygen
zmupdateauthkeys
zmloggerctl stop ; zmloggerctl start

2011/03/16

Blueprint script to create DNS records in AD

Create this following code as a bat. You can than run the following (assuming you called the bat adddns.bat):
>adddns mynewhost01 0 10

This will create the records for a host 192.168.0.10 (in the example)

@echo off
:start
if "%1" == "" goto error
if "%2" == "" goto error
if "%3" == "" goto error

dnscmd abinbev.demo /recordadd yourdomain.com %1 A 192.168.%2.%3
dnscmd abinbev.demo /recordadd %2.168.192.in-addr.arpa %3 PTR %1.yourdomain.com

goto end

:error
echo name
echo adddns.bat host1 2 213
goto end
:end