On 09/08/2019 10.28, Per Jessen wrote:
Carlos E. R. wrote:
On 09/08/2019 09.44, Per Jessen wrote:
Carlos E. R. wrote:
Of course, if you feel certain it is a bug, open a report, but I think it is more likely a problem in the environment.
I don't feel certain of anything, but I do not know where to look.
Try looking up www.google.com or mirror.hostsuisse.com, use 'host' or 'dig'. That'll ascertain that dns ipv6 lookups work.
Of course it works.
Seeing as you complained that IPv6 lookups didn't work when nscd was running, I thought it best to check.
cer@Telcontar:~> host Isengard Isengard.valinor has address 192.168.1.16 Isengard.valinor has IPv6 address fc00::16 <============
This is with or without nscd running?
Indifferent.
er@Telcontar:~> ping -v -6 google.com ping: socket: Permission denied, attempting raw socket... connect: Network is unreachable
I think that proves my point - it isn't nscd, it's the environment. Clearly ping was able to resolve 'google.com' and tries to ping it, but as you have no default route, the network is unreachable.
I don't care. I simply want it to work, and it doesn't, here. I have no ideas where to look. The only thing I found out, by looking at strace of the ping command, was that nscd was involved. Maybe there is a problem with "fc00::" addresses. Do you have any such to try? strace of "ping -6 -c 1 Isengard" socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 4 connect(4, {sa_family=AF_UNIX, sun_path="/var/run/nscd/socket"}, 110) = 0 sendto(4, "\2\0\0\0\r\0\0\0\6\0\0\0hosts\0", 18, MSG_NOSIGNAL, NULL, 0) = 18 poll([{fd=4, events=POLLIN|POLLERR|POLLHUP}], 1, 5000) = 1 ([{fd=4, revents=POLLIN|POLLHUP}]) recvmsg(4, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="hosts\0", iov_len=6}, {iov_base="\310O\3\0\0\0\0\0", iov_len=8}], msg_iovlen=2, msg_control=[{cmsg_len=20, cmsg_level=SOL_SOCKET, cmsg_type=SCM_RIGHTS, cmsg_data=[5]}], msg_controllen=20, msg_flags=MSG_CMSG_CLOEXEC}, MSG_CMSG_CLOEXEC) = 14 mmap(NULL, 217032, PROT_READ, MAP_SHARED, 5, 0) = 0x7f5834907000 close(5) = 0 close(4) = 0 socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 4 connect(4, {sa_family=AF_UNIX, sun_path="/var/run/nscd/socket"}, 110) = 0 sendto(4, "\2\0\0\0\16\0\0\0\t\0\0\0Isengard\0", 21, MSG_NOSIGNAL, NULL, 0) = 21 poll([{fd=4, events=POLLIN|POLLERR|POLLHUP}], 1, 5000) = 1 ([{fd=4, revents=POLLIN}]) read(4, "\2\0\0\0\1\0\0\0\1\0\0\0\4\0\0\0\21\0\0\0\0\0\0\0", 24) = 24 read(4, "\300\250\1\20\2Isengard.valinor\0", 22) = 22 <================= close(4) = 0 write(2, "ping: Isengard: Name or service "..., 42) = 42 exit_group(2) = ? +++ exited with 2 +++ strace of "ping -6 -c 1 google.com" connect(4, {sa_family=AF_UNIX, sun_path="/var/run/nscd/socket"}, 110) = 0 sendto(4, "\2\0\0\0\r\0\0\0\6\0\0\0hosts\0", 18, MSG_NOSIGNAL, NULL, 0) = 18 poll([{fd=4, events=POLLIN|POLLERR|POLLHUP}], 1, 5000) = 1 ([{fd=4, revents=POLLIN|POLLHUP}]) recvmsg(4, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="hosts\0", iov_len=6}, {iov_base="\310O\3\0\0\0\0\0", iov_len=8}], msg_iovlen=2, msg_control=[{cmsg_len=20, cmsg_level=SOL_SOCKET, cmsg_type=SCM_RIGHTS, cmsg_data=[5]}], msg_controllen=20, msg_flags=MSG_CMSG_CLOEXEC}, MSG_CMSG_CLOEXEC) = 14 mmap(NULL, 217032, PROT_READ, MAP_SHARED, 5, 0) = 0x7f151c775000 close(5) = 0 close(4) = 0 socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 4 connect(4, {sa_family=AF_UNIX, sun_path="/var/run/nscd/socket"}, 110) = 0 sendto(4, "\2\0\0\0\16\0\0\0\v\0\0\0google.com\0", 23, MSG_NOSIGNAL, NULL, 0) = 23 poll([{fd=4, events=POLLIN|POLLERR|POLLHUP}], 1, 5000) = 1 ([{fd=4, revents=POLLIN|POLLHUP}]) read(4, "\2\0\0\0\1\0\0\0\2\0\0\0\24\0\0\0\v\0\0\0\0\0\0\0", 24) = 24 read(4, "*\0\24P@\7\10\21\0\0\0\0\0\0 \16\254\331\22\316\n\2google.com"..., 33) = 33 <================= close(4) = 0 socket(AF_INET6, SOCK_DGRAM, IPPROTO_IP) = 4 connect(4, {sa_family=AF_INET6, sin6_port=htons(1025), inet_pton(AF_INET6, "2a00:1450:4007:811::200e", &sin6_addr), sin6_flowinfo=htonl(0), sin6_scope_id=0}, 28) = -1 ENETUNREACH (Network is unreachable) dup(2) = 5 fcntl(5, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE) fstat(5, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 29), ...}) = 0 write(5, "connect: Network is unreachable\n", 32) = 32 close(5) = 0 exit_group(2) = ? +++ exited with 2 +++ The arrow marks what I think is the reply from nscd. When it is running, it does not give the IPv6 answer for Isengard, so ping fails with "Name or service not known". Why, I have no idea. Another one (nscd running): Telcontar:~ # ping -6 telcontar ping: telcontar: Name or service not known Telcontar:~ # host telcontar Telcontar.valinor has address 192.168.1.14 Telcontar.valinor has IPv6 address fc00::14 Telcontar.valinor mail is handled by 10 Telcontar.valinor. Telcontar:~ # -- Cheers / Saludos, Carlos E. R. (from 15.0 x86_64 at Telcontar)