From owner-freebsd-questions Mon Jul 31 13:20:23 2000 Delivered-To: freebsd-questions@freebsd.org Received: from smtp.mail.yahoo.com (smtp.mail.yahoo.com [128.11.68.32]) by hub.freebsd.org (Postfix) with SMTP id 68CC037BCD0 for ; Mon, 31 Jul 2000 13:20:04 -0700 (PDT) (envelope-from ksscendyn@yahoo.com) Received: from adsl-63-207-35-234.dsl.lsan03.pacbell.net (HELO kurts-07wxp.idealfasteners.com) (63.207.35.234) by smtp.mail.yahoo.com with SMTP; 31 Jul 2000 18:30:01 -0000 X-Apparently-From: Message-Id: <4.3.2.7.2.20000731113045.00ac0100@pop.mail.yahoo.com> X-Sender: ksscendyn@pop.mail.yahoo.com X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Date: Mon, 31 Jul 2000 11:33:00 -0700 To: questions@freebsd.org From: Kurtis Smith Subject: DNS+Mail setup for Domain... Newbie one.. Help super Appreciated : ) Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=====================_16446215==_.ALT" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --=====================_16446215==_.ALT Content-Type: text/plain; charset="us-ascii"; format=flowed 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 -- Microsoft is loosing the battle... Jump on board and take a ride on Berkeley Software Development. --=====================_16446215==_.ALT Content-Type: text/html; charset="us-ascii" 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

-- Microsoft is loosing the battle... Jump on board and take a ride on Berkeley Software Development.
--=====================_16446215==_.ALT-- __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message