Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Aug 2000 17:11:39 +1000 (EST)
From:      Rob Hurle <rob@coombs.anu.edu.au>
To:        freebsd-questions@freebsd.org
Subject:   DNS+Mail setup for Domain... Newbie one.. Help super  Appreciated : ) (fwd)
Message-ID:  <Pine.GSO.4.05.10008071710050.25765-100000@caligula.anu.edu.au>

next in thread | raw e-mail | index | archive | help
	Sorry, I was asked to post this a week ago, but it slipped through
some cracks.  Apologies if it is a repeat.


Hi Everyone...

This is my first post to the list so i will try to make it complete and 
somewhat short and easy for those who are studly full time admins... I am 
coming from a MS background.

Ok I have emailed Kevin Oberman and help from Rob Hurle with this similair 
how to or difficulty.
THESE GUYS ARE FRICKING AWESOME THANKS FOR THE SUPPORT!!!

I have a linksys router with an ip given from pacbell.   I have two BSD 
boxes behind it.

ideal ip 192.168.1.2
fasteners ip 192.168.1.3

I named the first one "ideal" and the second "fasteners" I am setting up a 
mail and ftp server on fasteners as well as a slave DNS (if possible).

On Ideal I am setting up the Master DNS server and a WWW for 
idealfasteners.com which is now hosted by a person who has robbed us for 
sometimes... So that is why I am in a hurry...(short stupid history)

Ok here is my DNS setup please critique me and let me know whats needed I 
have done a bit of research and felt reading the list has helped me 
TREMENDOUSLY!... I have the Handbook and Greg L. Book as well as searched a 
lot of stuff.... Just finally felt you guyz can critique me.

Ok here you go.... ( I wrote this for people when I leave I have all 
documentation for this company.. LOL thanks..

You start with the file "namedb" located or should be created in 
/etc/namedb/db.idealfasteners.com.

Now lets get started.

Create a configuration file for Ideal.  /etc/namedb/db.idealfasteners.com

; Configuration for DNS of zone idealfasteners.com

idealfasteners.com.     IN      SOA     ideal.idealfasteners.com. 
admin.idealfasteners.com(
                                         1997010902      ;  Serial (date, 2 
digit version of day)
                                         86400           ;  refresh (1 day)
                                         7200            ;  retry (2 
hours)                                                              8640000 
;  expire (100 days)
                                         86400   )       ; minimum (1 day)

; Name Servers

                 IN      NS      ns1
                 IN      NS      ns2
ns1             IN      A       192.168.1.2
ns2             IN      A       192.168.1.3

; Mail Exchange Records

                 IN      MX      50      fasteners.idealfasteners.com
                 IN      MX      75      ideal.idealfasteners.com

; Hosts

ideal           IN      A       192.168.1.2
fasteners       IN      A       192.168.1.3

; Nicknames of Machines

mail            IN      CNAME   ideal
www             IN      CNAME   fasteners
ftp             IN      CNAME   ideal

; System Information HINFO records

ideal           IN      HINFO           "Intel Pentium Celeron 533A"
fasteners       IN      HINFO           "Intel Pentium 150Mhz"

; End of db.idealfasteners.com



Now you must create a another file in /etc/namedb/named.conf

Options {
         directory  "/etc/namedb";
         forwarders {
                 206.13.29.12
                 206.13.30.12
         };

zone "." {
         type hint;
         file "named.root";
};

zone "idealfasteners.com" {
         type master;
         file "db.idealfasteners.com";

};

zone "2.168.192.IN-ADDR.ARPA"{
         type master;
         file "localhost.rev";
};

Now you have to create the localhost.rev for reverse DNS lookup this will 
be created in /etc/namedb/localhost.rev

@               IN      SOA     ideal.idealfasteners.com. 
admin.idealfasteners.com. (
                                 1997010902      ;  Serial (date, 2 digit 
version of day)
                                 86400           ;  refresh (1 day)
                                 7200            ;  retry (2 
hours)                                                              8640000 
;  expire (100 days)
                                 86400   )       ; minimum (1 day)
                 IN      NS      ns1.idealfasteners.com
                 IN      NS      ns2.idealfasteners.com

1               IN      PTR     ideal.idealfasteners.com
2               IN      PTR     fasteners.idealfasteners.com

After this is complete we have to set up the Secondary Name Server or Slave 
as it was called.
This will be put in /etc/namedb/name.conf

zone "." {
         Type hint;
         File "named.root"
};

zone "idealfasteners.com" {
         type slave;
         file "backup.idealfasteners.com";
         masters {
                 192.168.1.2
         };
};

zone "3.168.192.IN-ADDR.ARPA" {
         type slave;
         file "backup.idealfasteners.com";
         masters {
                 192.168.1.2;
         };
};

zone "0.0.127.IN-ADDR.ARPA" {
         type slave;
         file "localhost.rev";
         masters {
                 192.168.1.2
         };
};




-Kurtis






To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.05.10008071710050.25765-100000>