From owner-freebsd-questions Mon Jun 12 8:32:35 2000 Delivered-To: freebsd-questions@freebsd.org Received: from enterweb.enterit.com (enterweb.enterit.com [209.45.199.22]) by hub.freebsd.org (Postfix) with ESMTP id B6CB937B72D for ; Mon, 12 Jun 2000 08:32:29 -0700 (PDT) (envelope-from jconner@enterit.com) Received: from KWAN [209.45.199.38] by enterweb.enterit.com with ESMTP (SMTPD32-5.04) id A27E6F20118; Mon, 12 Jun 2000 11:32:14 EST Message-Id: <4.2.0.58.20000612105747.01358aa8@mail.enterit.com> X-Sender: jconner@mail.enterit.com X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58 Date: Mon, 12 Jun 2000 11:43:11 -0400 To: Johan Petersson , freebsd-questions@freebsd.org From: Jim C Subject: Re: named In-Reply-To: <20000612123240.2286375443@studentmail.liu.se> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG At 14.32 12.06.00 +0100, Johan Petersson wrote: >Hello! > >I want to point multiplie domains to a single IP, but It is simple to point multiple domains to a single IP. (see next comment though) >I don't know how to do with "37.147.223.in-addr.arpa". $TTL 84600 @ IN SOA domain.com. root.localhost.com. ( xxxx ; serial xxxxH ;refresh xxxxH ;retry xxxxD ;expire xxxxD ;minimum ) ... $ORIGIN domain.com. host IN A 192.168.100.1 machine IN A 192.168.100.1 bug IN A 192.168.100.2 bug IN A 192.168.100.3 example IN CNAME bug ... so now, if you do a forward lookup for "host", you get 192.168.100.1 and if you look for "machine" you get 192.168.100.1 if you look for "bug" you will get two (2) IP addresses and the alias "example" that are associated to that name. Non-authoritative answer: Name: bug.domain.com Addresses: 192.168.100.2, 192.168.100.3 Aliases: example.domain.com now, for reverse lookups I have never been able to find a mechanism that allows you to have multiple names associated with a single IP address. $TTL 84600 @ IN SOA domain.com. root.localhost.com. ( xxxx ;serial xxxxH ;refresh xxxxH ;retry xxxxD ;expire xxxxD ;minimum) ... 1 IN PTR host.domain.com. 2 IN PTR bug.domain.com. 3 IN PTR bug.domain.com. ... So now if someone specifically looks for 192.168.100.1, 192.168.100.2, 192.168.100.3 they will get "host", "bug", "bug" respectively. - Jim >Named complain (cannot redefine zone '37.147.223.in-addr.arpa' >class IN), if I have following lines in named.conf. How shall >I solve this problem ? > >-----------------------8<------------------------------ >//************** ZONE BITMAP-STUDIOS.COM ************** >zone "bitmap-studios.com" { > type master; > file "db.bitmap-studios.com"; >}; >zone "37.147.223.in-addr.arpa" { > type master; > file "bitmap-studios-reverse"; >}; >//************************************************* > >//*************** ZONE NEWDOMAIN.SE *************** >zone "newdomain.se" { > type master; > file "db.newdomain.se"; >}; >zone "37.147.223.in-addr.arpa" { > type master; > file "newdomain.se-reverse"; >}; >//************************************************* >--------------------------8<--------------------------- > >Best regards > >--Johan > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message