1 |
On Sunday 21 September 2008 15:08:18 Momesso Andrea wrote: |
2 |
> My home server is 192.168.1.5 in my home wan, the hostname of the machine |
3 |
> is "fandango", and the the /etc/hosts in my laptop looks like this: |
4 |
> |
5 |
> [...] |
6 |
> 192.168.1.5 fandango |
7 |
> |
8 |
> Sometimes I need to connect to the server while I'm far from home, so the |
9 |
> server has also a dyndns address, let's say "fandango.dyndns.org". |
10 |
> |
11 |
> When I connect from outside my wan I use "fandango.dyndns.org", when I'm at |
12 |
> home just "fandango". |
13 |
> |
14 |
> Is there a way to tell my laptop to always use "fandango" and, |
15 |
> if "192.168.1.5" is available, to resolve it this way, otherwise to resolve |
16 |
> it as "fandango.dyndns.org". |
17 |
> |
18 |
> This way I will avoid double configurations, double password stored in |
19 |
> firefox, ecc... |
20 |
|
21 |
I'm sure you can get very complex solutions to this, but have you tried |
22 |
something as simple as "search dyndns.org" in resolv.conf? |
23 |
|
24 |
|
25 |
|
26 |
-- |
27 |
alan dot mckinnon at gmail dot com |