Gentoo Archives: gentoo-user

From: Momesso Andrea <momesso.andrea@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Automatic host switching
Date: Sun, 21 Sep 2008 17:19:10
Message-Id: 200809211917.33681.momesso.andrea@gmail.com
In Reply to: Re: [gentoo-user] Automatic host switching by Alan McKinnon
1 On Sunday 21 September 2008 18:28:48 Alan McKinnon wrote:
2 > On Sunday 21 September 2008 15:08:18 Momesso Andrea wrote:
3 > > My home server is 192.168.1.5 in my home wan, the hostname of the machine
4 > > is "fandango", and the the /etc/hosts in my laptop looks like this:
5 > >
6 > > [...]
7 > > 192.168.1.5 fandango
8 > >
9 > > Sometimes I need to connect to the server while I'm far from home, so the
10 > > server has also a dyndns address, let's say "fandango.dyndns.org".
11 > >
12 > > When I connect from outside my wan I use "fandango.dyndns.org", when I'm
13 > > at home just "fandango".
14 > >
15 > > Is there a way to tell my laptop to always use "fandango" and,
16 > > if "192.168.1.5" is available, to resolve it this way, otherwise to
17 > > resolve it as "fandango.dyndns.org".
18 > >
19 > > This way I will avoid double configurations, double password stored in
20 > > firefox, ecc...
21 >
22 > I'm sure you can get very complex solutions to this, but have you tried
23 > something as simple as "search dyndns.org" in resolv.conf?
24
25 Sorry but I can't understand what you mean...
26
27 --
28 ========================================
29 MOMESSO ANDREA
30 jabber: topper_harley@××××××.org
31 ========================================

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] Automatic host switching Alan McKinnon <alan.mckinnon@×××××.com>