Re: host aliases
vOn Thu, 22 Mar 2007 20:24:47 -0400
Celejar <email@example.com> wrote:
> On Thu, 22 Mar 2007 21:40:13 +0100
> Matus UHLAR - fantomas <firstname.lastname@example.org> wrote:
> > On 20.03.07 15:18, Celejar wrote:
> > > Not sure what you mean. How can I access it directly from the
> > > internet without knowing the IP address or using the long dynamic
> > > DNS name?
> > put 'search the.dyndns.domain' into your resolv.conf
> Thanks. Works, but it requires that the 'dynalias.org' part stays
> fixed, and that I use it for all hosts I want to access via single
> word hostnames. I'd still be curious about a more general solution to
> do aliasing.
You can put several domains on the 'search ...' line. Obviously the
first match will win. See 'man resolv.conf' for details.