Re: host aliases
On 18.03.07 16:15, Celejar wrote:
> I want to configure a system-wide host alias. Say there's a host whose
> DNS name is 'foo.bar'. I want any network application that asks for
> 'baz' to get 'foo.bar'. I know I can do this for individual apps; in
> ssh, for example, I include these 2 lines in 'config':
> Host baz
> HostName foo.bar
> But is this possible on an app-independent, system-wide basis? If the
> host is accessed by several different apps, it would be a pain to do
> this separately for each one, and a greater pain to adjust if the alias
> ever changed.
> /etc/hosts allows aliases of names to IP addresses, but not,
> apparently, of one name to another without an IP address. Is there any
> way to do what I want (preferably without needing to install a DNS
> server, even a lightweight one such as dnsmasq)?
I don't know about any. Even dnsmasq can't do that.
Why do you want to map name to another name? Why isn't mapping to IP enough
Matus UHLAR - fantomas, email@example.com ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
"Two words: Windows survives." - Craig Mundie, Microsoft senior strategist
"So does syphillis. Good thing we have penicillin." - Matthew Alton