Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Jun 2000 11:43:11 -0400
From:      Jim C <jconner@enterit.com>
To:        Johan Petersson <johpe159@student.liu.se>, freebsd-questions@freebsd.org
Subject:   Re: named
Message-ID:  <4.2.0.58.20000612105747.01358aa8@mail.enterit.com>
In-Reply-To: <20000612123240.2286375443@studentmail.liu.se>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4.2.0.58.20000612105747.01358aa8>