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.

Edit /etc/named.conf, and add your domain like so to the end of the file:

zone "" {
type master;
file "/var/named/";

“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/, and add this to it:

$ttl 38400
@	IN	SOA (
38400 )
@	      IN	NS
@             IN        MX     10
@	      IN	A
hostname IN        A
mail1       IN	      CNAME	hostname
mail2       IN        CNAME     hostname

* Edit /etc/resolv.conf, comment out the “nameserver” line(s), add make it read:


Now restart bind:

/etc/init.d/bind restart

After all that, if you run the command: dig a

You should get a few lines of output, that includes something like:


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:
The result:

Image final Dns Bind

Bibliography: – – the original work


~ di diegotech su marzo 18, 2008.

2 Risposte to “Make a simple Dns cache server for zimbra on your pc”

  1. […] 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. […]

  2. Somehow i missed the point. Probably lost in translation 🙂 Anyway … nice blog to visit.

    cheers, Onrushing.


Inserisci i tuoi dati qui sotto o clicca su un'icona per effettuare l'accesso:


Stai commentando usando il tuo account Chiudi sessione /  Modifica )

Google+ photo

Stai commentando usando il tuo account Google+. Chiudi sessione /  Modifica )

Foto Twitter

Stai commentando usando il tuo account Twitter. Chiudi sessione /  Modifica )

Foto di Facebook

Stai commentando usando il tuo account Facebook. Chiudi sessione /  Modifica )


Connessione a %s...

%d blogger hanno fatto clic su Mi Piace per questo: