Gentoo Archives: gentoo-user

From: Momesso Andrea <momesso.andrea@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Automatic host switching
Date: Sun, 21 Sep 2008 13:10:00
Message-Id: 200809211508.24898.momesso.andrea@gmail.com
In Reply to: [gentoo-user] error in updating eix by John covici
1 My home server is 192.168.1.5 in my home wan, the hostname of the machine
2 is "fandango", and the the /etc/hosts in my laptop looks like this:
3
4 [...]
5 192.168.1.5 fandango
6
7 Sometimes I need to connect to the server while I'm far from home, so the
8 server has also a dyndns address, let's say "fandango.dyndns.org".
9
10 When I connect from outside my wan I use "fandango.dyndns.org", when I'm at
11 home just "fandango".
12
13 Is there a way to tell my laptop to always use "fandango" and,
14 if "192.168.1.5" is available, to resolve it this way, otherwise to resolve
15 it as "fandango.dyndns.org".
16
17 This way I will avoid double configurations, double password stored in
18 firefox, ecc...
19
20 Any ideas?
21
22
23 ========================================
24 MOMESSO ANDREA
25 Jabber topper_harley@××××××.org
26 ========================================

Attachments

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

Replies

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