From owner-freebsd-questions@FreeBSD.ORG Fri Nov 21 09:26:03 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B8EBA16A4CE for ; Fri, 21 Nov 2003 09:26:03 -0800 (PST) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id EC8CB43FAF for ; Fri, 21 Nov 2003 09:26:01 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [127.0.0.1]) hALHPTBg064352 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 21 Nov 2003 17:25:33 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id hALHPRRP064351; Fri, 21 Nov 2003 17:25:27 GMT (envelope-from matthew) Date: Fri, 21 Nov 2003 17:25:27 +0000 From: Matthew Seaman To: Marty Landman Message-ID: <20031121172527.GC63337@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Marty Landman , cpghost@cordula.ws, root@pukruppa.de, freebsd-questions@freebsd.org References: <20031121161852.H28859@pukruppa.net> <200311211542.hALFg3pd067288@fw.farid-hajji.net> <6.0.0.22.0.20031121105316.01b83340@pop.face2interface.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="8NvZYKFJsRX2Djef" Content-Disposition: inline In-Reply-To: <6.0.0.22.0.20031121105316.01b83340@pop.face2interface.com> User-Agent: Mutt/1.5.5.1i X-Spam-Status: No, hits=-4.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.60 X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on happy-idiot-talk.infracaninophile.co.uk cc: root@pukruppa.de cc: cpghost@cordula.ws cc: freebsd-questions@freebsd.org Subject: Re: Static IP and fully qualified domain names X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Nov 2003 17:26:03 -0000 --8NvZYKFJsRX2Djef Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Nov 21, 2003 at 10:54:21AM -0500, Marty Landman wrote: > At 10:42 AM 11/21/2003, Cordula's Web wrote: > >> > >> From reading manuals one should think, that now I could give my > >> machines names like one.pukruppa.net, two.pukruppa.net, etc... > >> and all these would be reachable via internet - but they aren't. > >> The only one that can be accessed is pukruppa.net . > > > >You need to add A records (or CNAME records) to your DNS > >zone pukruppa.net: >=20 > I'm a newbie faced with a similar (I think) problem; only in my case I'd= =20 > like to do the required DNS mapping on my intranet. Have no clue so plz b= e=20 > gentle? On an intranet setting this sort of stuff up in the DNS is easy. Unless you have a particularly large and complicated setup, you don't need to bother with DNS delegation; neither do you need to worry about CIDR and other things that complicate life. Lets assume that the domain you're using in your intranet is 'example.com' and you've chose to use the 192.168.0.0/24 subnet for all of your IP numbering. You need to set up a machine as DNS server for your intranet. In the named.conf file for that machine, configure it to be the authoritative server for the example.com. and 0.168.192.in-addr.arpa. zones by adding (inter alia): acl localmachines { 127.0.0.1; 192.168.0.0/24; }; zone "example.com" in { type master; file "p/example.com"; allow-query { localmachines; }; allow-transfer { none; }; notify no; }; zone "0.168.192.in-addr.arpa" in { type master; file "p/0.168.192.in-addr.arpa"; allow-query { localmachines; }; allow-transfer { none; }; notify no; }; where the zone data files might look something like this. example.com: $TTL 3600 =20 @ IN SOA ns0.example.com. hostmaster.example.com. ( 2003112100 ; Serial 10800 ; Refresh (3H) 3600 ; Retry (1H) 604800 ; Expire (1W) 43200 ) ; Minimum (12H) NS ns0 MX 10 smtp ; localhost A 127.0.0.1 MX 10 smtp ; net A 192.168.0.0 MX 10 smtp ; ns0 A 192.168.0.1 MX 10 smtp ; smtp A 192.168.0.2 MX 10 smtp ; foo A 192.168.0.3 MX 10 smtp www-intra CNAME foo ; ;[...other data...] ; broadcast A 192.168.0.255 MX 10 smtp ; ; That's All Folks! ; 0.168.192.in-addr.arpa: $TTL 3600 =20 @ IN SOA ns0.example.com. hostmaster.example.com. ( 2003112100 ; Serial 10800 ; Refresh (3H) 3600 ; Retry (1H) 604800 ; Expire (1W) 43200 ) ; Minimum (12H) NS ns0.example.com. ; 0 PTR net.example.com. 1 PTR ns0.example.com. 2 PTR smtp.example.com. 3 PTR foo.example.com. ;[...] 255 PTR broadcast.example.com. ; ; That's All Folks! ; Simple eh? Actually, if all this is pretty much gibberish to you, I recommend getting hold of the Cricket book: "DNS and BIND", 4th Ed, P. Albitz and C. Liu, O'Reilly and associates, Sebastopol, CA. ISBN 0-596-00158-4 which will explain things with extreme lucidity. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --8NvZYKFJsRX2Djef Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/vkqHdtESqEQa7a0RApozAJ9iWH2GfPZrkoBNMo/sSvuoehgIoACgi4Yu ri0hJIB2yAlVfc9LkUJs+tQ= =2y5y -----END PGP SIGNATURE----- --8NvZYKFJsRX2Djef--