"getaddrinfo for local hostname failed: No address associated with hostname" for IPv4 to IPv6 converted address
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sane-backends (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I am trying to setup saned for remote scanning, but without luck. On server side I have allowed 192.168.1.0/24 subnet, but remote host does not find a scanner. During investigation I found the following in server's logs:
Jul 25 11:40:42 X saned[4167]: bailing out, waiting for children...
Jul 25 11:40:42 X saned[4167]: bail_out: all children exited
Jul 25 11:40:42 X saned[4299]: saned (AF-indep+IPv6) from sane-backends 1.0.30 starting up
Jul 25 11:40:42 X saned[4299]: do_bindings: [0] bind failed: Address already in use
Jul 25 11:40:42 X saned[4300]: Now daemonized
Jul 25 11:40:43 X saned[4314]: check_host: access by remote host: ::ffff:192.168.1.2
Jul 25 11:40:43 X saned[4314]: check_host: getaddrinfo for local hostname failed: No address associated with hostname
Jul 25 11:40:43 X saned[4314]: init: access by host ::ffff:192.168.1.2 denied
Jul 25 11:40:43 X saned[4314]: quit: exiting
It looks to me like it is treating the IPv4 to IPv6 converted address as a hostname and trying to resolve it, what of course fails. This looks like a bug for me. Adding "::ffff:
# sysctl -a | grep "net.ipv6.
net.ipv6.bindv6only = 0
Possibly related? https:/ /gitlab. com/sane- project/ backends/ -/issues/ 499
What are you using to start the daemon (systemd, inetd, sysvinit)? Can you add the command-line option "--debug=5" and post the same part of the system log?