DNS-lookup to AAAA (IPv6) doesn't seem to work

Bug #54918 reported by Nafallo Bjälevik
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
backuppc (Ubuntu)
Fix Released
Wishlist
Unassigned

Bug Description

Currently backuppc can only find hosts via nmblookup and resolving A-records in DNS. I think it would be a /really/ nice addition to be able to lookup AAAA-records aswell.

Tags: ipv6
Changed in backuppc:
importance: Untriaged → Wishlist
Revision history for this message
Connor Imes (ckimes) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue for you. Can you try with the latest Ubuntu release? Thanks in advance.

Changed in backuppc:
status: New → Incomplete
Revision history for this message
Sjors Gielen (sgielen) wrote :

It is still an issue for me, with version 3.1.0-4 from the Debian archives. This is also the version Ubuntu is using, so re-opening this bug. Backuppc should get IPv6 support, I was just bitten by this bug.

Changed in backuppc (Ubuntu):
status: Incomplete → New
Revision history for this message
Connor Imes (ckimes) wrote :

Thank you for the feedback dazjorz, I will mark the bug as Confirmed based on your comment.

Changed in backuppc (Ubuntu):
status: New → Confirmed
Revision history for this message
Sjors Gielen (sgielen) wrote :

Is this bug fixed yet? I think it's more important than Wishlist since IPv6 is spreading and it not working can be considered a real bug. Also, it seems fairly simple to fix. Has it been triaged to the backuppc developers yet?

Revision history for this message
Aaron C. de Bruyn (darkpixel2k) wrote :

I am currently backing up quite a few machines with BackupPC, two of them are IPv6 only--but they are linux boxes. Is this just a problem with SMB/Windows backups?

Revision history for this message
Aaron C. de Bruyn (darkpixel2k) wrote :

IPv6 is not 'part' of BackupPC. IPv6 is part of the OS. BackupPC uses rsync to backup files from linux machines which in turn is capable of making IPv6 connections. I can confirm that BackupPC using rsync to another linux box works. Since no one is answering questions or providing more information on the bug, I am marking it as invalid. If someone can show that there is a bug and provide a little more detailed information, please re-open it.

Changed in backuppc (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Sjors Gielen (sgielen) wrote :

Aaron, I am most completely aware that IPv6 support is provided by the OS, not BackupPC. The server and desktop I was using BackupPC with, both support IPv6 and are able to ping and connect to each other without any problems, yet backups kept failing. I was, apparantly, not the only one.

Reopening this bug as 'Incomplete', so I will check the status of this bug again once I get to that network, which will be in a week's time.

Changed in backuppc (Ubuntu):
status: Invalid → Incomplete
Chuck Short (zulcss)
Changed in backuppc (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Greg Franklin (greg-franklin-wmrdc) wrote :

As far as I've found, there are two points where IPv6 Fails.

Firstly, in the use of gethostbyname. You'll need to install libsocket6-perl. I tried getnameinfo, but for some reason that didn't work so I've used getaddrinfo:

=== modified file 'bin/BackupPC_dump'
--- bin/BackupPC_dump 2008-06-30 11:20:59 +0000
+++ bin/BackupPC_dump 2010-07-16 13:54:27 +0000
@@ -91,6 +91,7 @@
 use File::Path;
 use File::Find;
 use Getopt::Std;
+use Socket6;

 ###########################################################################
 # Initialize
@@ -247,7 +248,8 @@
     } else {
         $host = $client;
     }
- if ( !defined(gethostbyname($host)) ) {
+
+ if ( defined(getaddrinfo($host,"22")) ) {
         #
         # Ok, NS doesn't know about it. Maybe it is a NetBios name
         # instead.

Secondly, is the use of ping in CheckHostAlive in lib/BackupPC/Lib.pm
If you are IPv6 only, you can change $Conf{PingPath} to /bin/pin6 in config.pl
The alternative is to change $Conf{PingCmd} to '' in config.pl which skips the ping test.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package backuppc - 3.2.0-3ubuntu2

---------------
backuppc (3.2.0-3ubuntu2) natty; urgency=low

  * Applied ipv6-support.dpatch, debian/control:
    Add support for ipv6. (LP: #54918)
 -- Chuck Short <email address hidden> Mon, 07 Mar 2011 11:35:50 -0500

Changed in backuppc (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.