BackupPC-users

Re: [BackupPC-users] IPv6 support

2011-03-15 17:19:13
Subject: Re: [BackupPC-users] IPv6 support
From: Timothy J Massey <tmassey AT obscorp DOT com>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Tue, 15 Mar 2011 17:14:46 -0400
Tod Detre <tod.detre AT maine DOT edu> wrote on 03/15/2011 03:30:21 PM:

> Actually, that's not quite the whole picture. BackupPC does do dns
> name lookup and those calls are not IPv6 compatible.  Once such
> instance is in bin/BackupPC_dump line 503. The gethostbyname()
> function (at least last time I tried to do IPv6 with BackupPC) does
> not support IPv6.


Ah, you are correct:  you have to use getaddrinfo, but I'm not sure that Perl has been updated to reflect this...

> This causes BackupPC to try to do an nmblookup. If
> your client doesn't have and IPv4 address and does not respond to
> nmblookup, BackupPC will fail. However, if you do not use nmblookup,
> you can just get rid of lines 496-508,510 and BackupPC will work just
> fine.

I'd have to look at the rest of the code, but if gethostbyname fails, and if you remove the nmb stuff, you're left with a hostname.  The question is, does the rest of the code work with a host name string rather than an IP address?

Timothy J. Massey
 
Out of the Box Solutions, Inc.
Creative IT Solutions Made Simple!

http://www.OutOfTheBoxSolutions.com
tmassey AT obscorp DOT com
      22108 Harper Ave.
St. Clair Shores, MI 48080
Office: (800)750-4OBS (4627)
Cell: (586)945-8796

------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
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/
<Prev in Thread] Current Thread [Next in Thread>