Amanda-Users

Re: Problems with canonical names from an ADSL provider

2005-11-14 00:48:43
Subject: Re: Problems with canonical names from an ADSL provider
From: Jon LaBadie <jon AT jgcomp DOT com>
To: amanda-users AT amanda DOT org
Date: Mon, 14 Nov 2005 00:33:54 -0500
On Sun, Nov 13, 2005 at 10:14:38PM -0500, Lengyel, Florian wrote:
> If your server amanda.mydomain.com has an immutable static ip address,
> 
> abc.efg.hij.klm
> 
> but your client does a lookup on the ISP dns and sees 
>    amanda AT some.really.long DOT and.annoying.hostname
> instead of amanda.mydomain.com
> 
> then why not define an entry in your hosts file on the client
> of the form
> 
> abc.efg.hij.klm amanda.mydomain.com
> 
> ?
> 
> 
> 
> -----Original Message-----
> From: owner-amanda-users AT amanda DOT org on behalf of David Leangen
>  
> 
> Hello!
> 
> This may be slightly beyond the scope of Amanda, but I thought I'd try
> asking anyway...
> 
> Both my Amanda server and (one) backup host are connected to the
> Internet via ADSL. It seems that when Amanda on the backup host does a
> DNS lookup for my Amanda server, it sees something like:
> 
>   amanda AT some.really.long DOT and.annoying.hostname
> 
> which is generated by my ISP.
> 
> Now, since I have a static IP address, the really-long-and-annoying-
> hostname shouldn't change. However, I would much rather use the server's
> actual hostname (amanda.mydomain.com) instead.
> 
> 
> Is there some simple way of working around this? Or am I stuck with the
> really-long-and-annoying-hostname unless I do something complicated like
> implementing my own DNS lookup server or something like that?
> 
> 
> Thanks for any advice you can give me...
> 

When using /etc/hosts, make sure you /etc/nsswitch.conf file
has something like:

        hosts:      files dns

The lookup order, eg. files dns (and/or ldap, nis, ...) will be
important so that your local files are searched before the nameservers.

-- 
Jon H. LaBadie                  jon AT jgcomp DOT com
 JG Computing
 4455 Province Line Road        (609) 252-0159
 Princeton, NJ  08540-4322      (609) 683-7220 (fax)

<Prev in Thread] Current Thread [Next in Thread>