BackupPC-users

Re: [BackupPC-users] BackupPC finds the wrong hosts when ISPs hijack the DNS

2013-09-05 02:09:47
Subject: Re: [BackupPC-users] BackupPC finds the wrong hosts when ISPs hijack the DNS
From: "Tyler J. Wagner" <tyler AT tolaris DOT com>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Thu, 05 Sep 2013 09:07:47 +0300
Hi George,

Have you considered using Avahi/Zeroconf/Bonjour to look up your hosts?
This usually will result in wired interfaces being used before wireless,
and takes care of changing IP addresses for you.

Use $Conf{ClientNameAlias} = 'hostname.local' for each host. On most Linux
desktops and Macs, this will just work. On Windows you may need to install
the Bonjour client.

However, I imagine you'll still have issues with the DNS hijacking if the
host simply isn't online.

Regards,
Tyler

On 2013-09-05 06:05, George Adams wrote:
> I am running BackupPC 3.3.0 on an Ubunut 12.04.3 system.  My hosts (which are 
> all Windows PCs accessed via SMB) are set to dhcp=0, which has worked well 
> over several years/versions of BackupPC.  According to the docs on "How 
> BackupPC Finds Hosts", these sequence is:
> 
> - first gethostbyname()
> - then nmblookup if the DNS lookup fails.
> 
> However I am on Time Warner/Road Runner which apparently does DNS hijacking 
> in my area.  So EVERY DNS lookup is successful.  Any lookup of a non-existent 
> host returns the TWC search page address.
> 
> ------------------------------------------------------------------------
> 
>> nslookup asdfkkkeiioqllllsajjppp
> Server:         24.25.5.61
> Address:        24.25.5.61#53
> 
> Non-authoritative answer:
> Name:   asdfkkkeiioqllllsajjppp
> Address: 66.152.109.110
> 
>> perl
> 
> use Socket qw(inet_ntoa);
> my $host = 'ajslfjdkajwjkejkfsdfdjkasfjdklaskdfasjdas';
> my ($name,$aliases,$addrtype,$length,@addrs) = gethostbyname($host);
> printf("Host's address is %s\n",inet_ntoa($addrs[0]));
> 
> Host's address is 66.152.109.110
> 
> ------------------------------------------------------------------------
> 
> As a result, trying to backup "mediaserver" will result in BackupPC earnestly 
> trying (and failing) to backup 66.152.109.110
> 
> I would prefer that BackupPC simply skip the gethostbyname() part and go 
> straight to nmblookup:
> 
>> nmblookup mediaserver
> querying mediaserver on 10.4.9.255
> 10.4.9.3 mediaserver<00>
> 
> Is there a way to do this - to disable the DNS lookup of hosts, at least for 
> SMB hosts?
> 
> Thanks to anyone who can help.                                          
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk
> _______________________________________________
> 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/
> 

-- 
"I disapprove of what you say, but I will defend to the death your right
to say it."
   -- Evelyn Beatrice Hall

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk
_______________________________________________
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/