From owner-freebsd-questions Mon Aug 7 0:11:53 2000 Delivered-To: freebsd-questions@freebsd.org Received: from caligula.anu.edu.au (caligula.anu.edu.au [150.203.224.42]) by hub.freebsd.org (Postfix) with ESMTP id 4AEE537B58E for ; Mon, 7 Aug 2000 00:11:46 -0700 (PDT) (envelope-from rob@coombs.anu.edu.au) Received: from localhost (rob@localhost) by caligula.anu.edu.au (8.9.3/8.9.3) with ESMTP id RAA25980 for ; Mon, 7 Aug 2000 17:11:39 +1000 (EST) X-Authentication-Warning: caligula.anu.edu.au: rob owned process doing -bs Date: Mon, 7 Aug 2000 17:11:39 +1000 (EST) From: Rob Hurle X-Sender: rob@caligula.anu.edu.au To: freebsd-questions@freebsd.org Subject: DNS+Mail setup for Domain... Newbie one.. Help super Appreciated : ) (fwd) Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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