Setting up for a newbie

Daniele Salatti danielesalatti at
Fri Sep 15 10:52:59 UTC 2006

Hi all!!
I'm trying to set up BIND9 for the first time, and I need a little help...
I have a VPS (with Debian) with two IPs and I would like to set up a 
domain ( and two NS for that domain ( and I have read many how-tos and docs but I wasn't able to 
make it work.

This is what I have done...
I edited /etc/bind/named.conf.local and added the following lines:

zone "" {
type master;
file "/etc/bind/";

Then I change the /etc/resolv.conf this way:


And finally I created a file called /etc/bind/

@       IN      SOA (
                        2006091101         ; Serial
                        8H                 ; Refresh
                        2H                 ; Retry
                        4W                 ; Expire
                        1D )               ; Negative Cache TTL

@    IN      NS      ns1
@    IN      NS      ns2
     IN      A
     IN      MX      10 mail

ns1  IN      A
ns2  IN      A
mail IN      A
www  IN      A

ase        IN      CNAME   www
ftp        IN      CNAME   www
pop        IN      CNAME   www
imap       IN      CNAME   www
jabber     IN      CNAME   www

;; jabber

_jabber._tcp            IN      SRV     5       0 5269 jabber
_xmpp-server._tcp       IN      SRV     5       0 5269 jabber
_xmpp-client._tcp       IN      SRV     5       0 5222 jabber

But I can't resolve nor from a remote 
machine (while it works if I try on the VPS).
I can't figure out where is the error...can someone help me?

Thanks and regards,
Daniele Salatti

More information about the bind-users mailing list