Date: Fri, 21 Nov 2003 17:25:27 +0000 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Marty Landman <MLandman@face2interface.com> Cc: freebsd-questions@freebsd.org Subject: Re: Static IP and fully qualified domain names Message-ID: <20031121172527.GC63337@happy-idiot-talk.infracaninophile.co.uk> In-Reply-To: <6.0.0.22.0.20031121105316.01b83340@pop.face2interface.com> References: <20031121161852.H28859@pukruppa.net> <200311211542.hALFg3pd067288@fw.farid-hajji.net> <6.0.0.22.0.20031121105316.01b83340@pop.face2interface.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031121172527.GC63337>