Subject: Re: More than one hostname assigned to a machine
To: Colin J. Raven <colin@kozy-kabin.nl>
From: Benjamin Walkenhorst <krylon@gmx.net>
List: netbsd-help
Date: 11/07/2004 10:50:43
Hello,

Colin J. Raven wrote:

>Greetings all!
>
>Crazy though this sounds, I need my little qube to answer to more than
>one machine name....or something like that :) Let me give you an example
>of what I mean:
>
>The current FQDN is bosch.bonkers.nl
>(bonkers.nl is in DNS and assigned to my DSL router IP.) All currently
>works as it should absent any problems.
>
>I also have a DNS entry for noodle.nl and *it* too has the IP of my DSL
>router.
>How can I make my box answer to bosch.noodle.nl - as well as
>bosch.bonkers.nl.
>  
>

I am not entirely sure if this suits your situation, but as I see it, 
you can do two things:
1) add a second A RR for your IP (like "bosch.noodle.nl   IN A 1.2.3.4") 
to noodle.nl's DNS-server.
2) add an alias pointing to your primary hostname ("bosch.noodle.nl   IN 
CNAME bosch.bonkers.nl").

I am not 100% sure if a CNAME pointing to a different zone is going to 
work. ;-/
If you have access to the nameservers for noodle.nl, I suggest adding an 
A-record to the zone.
Having multiple hostnames point to the same IP is no problem at all, as 
long as there's just a single
reverse-lookup record for the IP.

>For that matter of it, could I even assign a different
>hostname for any transactions involving noodle.nl?
>  
>
I don't quite get what you mean here... Could you explain, please?
(But if that's what you mean - if you have access to noodle.nl's primary
DNS-server, you can add any hostnames you want, it doesn't matter
if they all point to the same IP. So if you're thinking of something
like www.noodle.nl, ftp.noodle.nl, ssh.noodle.nl, ... - that's not a
problem.)

Kind regards,
Benjamin