BackupPC-users

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

2010-07-28 10:09:18
Subject: Re: [BackupPC-users] nmblookup = good; ping = enemy
From: Frank J. Gómez <frank AT crop-circle DOT net>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Wed, 28 Jul 2010 10:06:14 -0400
/etc/resolv.conf contains:

nameserver 10.10.10.60
nameserver 10.10.10.1

.60 is my internal DNS, and .1 is the router.


On ".60" I've got:

        forwarders {
                71.252.0.12;
                71.242.0.12;
        };
 
in /etc/bind/named.conf.options.  Those are Verizon's DNS servers.  My internal DNS server contains records for a few in-house servers; when .60 receives a request for a domain it doesn't know about, it passes the request along to Verizon.

The bad DNS records are coming from Verizon; check it:

$ dig @71.252.0.12 vostro1400 ANY

; <<>> DiG 9.4.1-P1.1 <<>> @71.252.0.12 vostro1400 ANY
; (1 server found)
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 40845
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;vostro1400. IN ANY

;; ANSWER SECTION:
vostro1400. 0 IN A 8.15.7.117
vostro1400. 0 IN A 63.251.179.13

;; Query time: 13 msec
;; SERVER: 71.252.0.12#53(71.252.0.12)
;; WHEN: Wed Jul 28 10:04:53 2010
;; MSG SIZE  rcvd: 60


On Tue, Jul 27, 2010 at 6:47 PM, Les Mikesell <lesmikesell AT gmail DOT com> wrote:
On 7/27/2010 5:36 PM, Frank J. Gómez wrote:
>
> *With DHCP set to 1:*
>
> $ ./BackupPC_dump -v -f vostro1400
> cmdSystemOrEval: about to system /bin/ping -c 1 vostro1400
> cmdSystemOrEval: finished: got output PING vostro1400 (8.15.7.117)
> 56(84) bytes of data.
>
> It seems that, regardless of how the DHCP flag is set, BackupPC is going
> to ping the hostname.  In that case, why bother with nmblookup at all?
>   Where is the result of nmblookup used?  I don't understand.

Hmmm, maybe it tries DNS and only uses nmblookup if it fails.  Is there
some reason your DNS is returning the wrong IP here instead of failing?
 What 'search' domains do you have in /etc/resolv.conf where it must be
finding a match?

You could just replace the ping command with something that would always
succeed, but then timeouts would be slow when hosts were down.

--
  Les Mikesell
   lesmikesell AT gmail DOT com

------------------------------------------------------------------------------
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/

------------------------------------------------------------------------------
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://p.sf.net/sfu/dev2dev-palm
_______________________________________________
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/