BackupPC-users

Re: [BackupPC-users] nmblookup = good; ping = enemy

2010-07-27 18:08:23
Subject: Re: [BackupPC-users] nmblookup = good; ping = enemy
From: Leen Besselink <leen AT consolejunky DOT net>
To: backuppc-users AT lists.sourceforge DOT net
Date: Tue, 27 Jul 2010 23:40:23 +0200
On 07/27/2010 10:28 PM, Les Mikesell wrote:
> On 7/27/2010 1:46 PM, Frank J. Gómez wrote:
>    
>> I have a new instance set up, and BackupPC is not initiating backups
>> because pings keep failing.  The behavior is really quite strange;
>> please read on:
>>
>> "nmblookup vostro1400" gives me 10.10.10.102.  This is correct.
>>
>> "nmblookup -A 10.10.10.102" gives me vostro1400.  This, too, is correct.
>>
>> My config file tells me: $Conf{PingCmd} = '$pingPath -c 1 $host';
>>
>> The command "ping -c 1 vostro1400" gives:
>>
>>      PING vostro1400 (8.15.7.117) 56(84) bytes of data.
>>
>>
>>      --- vostro1400 ping statistics ---
>>
>>      1 packets transmitted, 0 received, 100% packet loss, time 0ms
>>
>>
>> What's up with that crazy IP address?  Why isn't ping resolving
>> vostro1400 to 10.10.10.102?  (Shouldn't we be pinging the IP address
>> instead of the hostname, anyway?)
>>
>> Any insight would be much appreciated.
>>      
> That IP address is what a DNS lookup returns, so it depends on your dns
> server and domain search list (as configured on the backuppc server).  I
> thought it would use nmblookup if you checked the dhcp box in the
> backuppc hosts config.  If it is a static IP, you can use the
> ClientAlias setting to supply the IP if DNS doesn't work.
>
>    
So you should check your:
/etc/resolv.conf
/etc/hosts

Possible use a fully qualified domainname:
volstrol400.office

An other tip, maybe add a . at the end, so that search from 
/etc/resolv.conf is not used

Also have a look at the output of:

$ hostname

That should give you an idea of what it might be looking for and what it 
might find. :-)


------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/