Package: backuppc
Severity: important
Version: 3.3.1-4
Tags: ipv6

I have more and more IPv6-only hosts. But if I add one of them to
hosts.cfg, I always get "host not found" as error message.

In the documentation under "How BackupPC Finds Hosts", it says:

> First DNS is used to lookup the IP address given the client's name
> using perl's gethostbyname() function. This should succeed for
> machines that have fixed IP addresses that are known via DNS. You can
> manually see whether a given host have a DNS entry according to perl's
> gethostbyname function with this command:
>
>     perl -e 'print(gethostbyname("myhost") ? "ok\n" : "not found\n");'

Example:

→ host ipv6.google.com
ipv6.google.com is an alias for ipv6.l.google.com.
ipv6.l.google.com has IPv6 address 2a00:1450:4016:80a::200e
$ perl -e 'print(gethostbyname("ipv6.google.com") ? "ok\n" : "not found\n");'
not found

So I can't backup this host despite SSH has no problem at all to reach
that host.

BackupPC should probably move to use Socket.pm's getaddrinfo instead as
it is IP-version agnostic.

So far I found no configuration-only workaround (i.e. disabling DNS
lookups at all as SSH does that already.)

-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (600, 'testing'), (500, 'unstable-debug'), 
(500, 'buildd-unstable'), (110, 'experimental'), (1, 'experimental-debug'), (1, 
'buildd-experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.13.0-rc7-amd64 (SMP w/8 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=C.UTF-8 
(charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Reply via email to