Make a simple Dns cache server for zimbra on your pc
Here some tricks to make a simple dns server on your own pc.
First of all you have to download BIND Dns server from debian repositories.
BIND offers a lot of functionality for what you need, it may be overkill. At the same time, it comes with Fedora, is well supported, and there are lots of examples of how to make it work. And, more to the point, I can tell you how to do what you need to in order for it to work, something I can’t say for the others ![]()
In debian anyway, we must get the package with apt-get.
Ok, now we try to exploit a bit of the bind technology.
We focused the tutorial on named.conf, it’s the core of BIND server.
Change hostname with -your hostname- and domain with -your-domain-(e.g. example.org)
Edit /etc/named.conf, and add your domain like so to the end of the file:
zone "mydomain.com" {
type master;
file "/var/named/mydomain.com.hosts";
};
“zone” is the section for your host. The path must be a real directory(check the named.options file for the right one).
* Create a file /var/named/mydomain.com.hosts, and add this to it:
$ttl 38400 @ IN SOA hostname.mydomain.com. root.hostname.mydomain.com. ( 2005110200 10800 3600 604800 38400 ) @ IN NS hostname.mydomain.com. @ IN MX 10 hostname.mydomain.com. @ IN A 192.168.1.3 hostname IN A 192.168.1.3 mail1 IN CNAME hostname mail2 IN CNAME hostname
* Edit /etc/resolv.conf, comment out the “nameserver” line(s), add make it read:
nameserver 127.0.0.1
Now restart bind:
/etc/init.d/bind restart
After all that, if you run the command: dig a mydomain.com
You should get a few lines of output, that includes something like:
;; ANSWER SECTION: mydomain.com. 2400 IN A 192.168.1.3
I haven’t tried the above. While I pieced it together from other settings I do have working, I’m not 100% certain there are no syntax errors and that sort of thing in this. You’ll want to do a sanity check on anything you are typing in
There are a lot of examples of how to setup BIND for handling DNS. One good place to start is the BIND HOWTO:
http://langfeldt.net/DNS-HOWTO/BIND-9/
The result:
Bibliography:
http://www.zimbra.com/forums/administrators/585-dns-nutshell.html – - the original work
http://wiki.zimbra.com/index.php?title=DNS
http://www.zimbra.com/forums/9589-post5.html
http://howtoforge.com/installing_zimbra_collaboration_suite_on_ubuntu_p2


[...] for the second choice it’s more challenging and tricky to explain, but follow in the section Configure a Dns cache server on your own pc. [...]
Zimbra 5 Installation « Diego Tech Weblog ha detto questo su Marzo 20, 2008 a 2:31 pm |
Somehow i missed the point. Probably lost in translation
Anyway … nice blog to visit.
cheers, Onrushing.