[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: host aliases



On Fri, 23 Mar 2007 08:25:44 +0000
Liam O'Toole <liam.p.otoole@gmail.com> wrote:

> vOn Thu, 22 Mar 2007 20:24:47 -0400
> Celejar <celejar@gmail.com> wrote:
> 
> > On Thu, 22 Mar 2007 21:40:13 +0100
> > Matus UHLAR - fantomas <uhlar@fantomas.sk> wrote:
> > 
> > [snip]
> > 
> > > 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.
> > 
> > Celejar
> > 
> > 
> 
> You can put several domains on the 'search ...' line. Obviously the
> first match will win. See 'man resolv.conf' for details.

I know. The problem is that if there are several hosts with different
domains / subdomains, there will be needless lookups, wasting time and
bandwidth (perhaps not a lot of it, but still). Even worse, say I
control 'foo.dynalias.org' and 'bar.dyndns.org', but someone else
controls 'foo.dyndns.org' and 'bar.dynalias.org'. Then regardless of
which subdomain is first in 'resolv.conf', I'll get incorrect matches,
which is obviously totally unacceptable. At this point, I have various
workarounds for my needs (so far I only need ssh anyway, so I can just
use ssh aliasing, as in my earlier posts), but I'm still really curious
about a general, reasonably elegant solution.

Celejar



Reply to: