On 09/08/2019 11.29, Per Jessen wrote:
Carlos E. R. wrote:
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.
Well, it is important though - it tells you where to look, in your environment. What you have created.
sure, but that is not my meaning :-) No matter if the issue is inside or outside, configuration or bug, I want to resolve it. Thus, I don't care what it is. Not that I don't care about resolving it. I don't care what the cause is. Sure, it is configuration related - either bad config or bug triggered by the local config.
Maybe there is a problem with "fc00::" addresses. Do you have any such to try?
I'm just trying it now - I have defined a name "carlos.example.com" = fc00::1234 -
# nscd -i hosts # host carlos.example.com carlos.example.com has IPv6 address fc00::1234 # ping carlos.example.com PING carlos.example.com(fc00::1234 (fc00::1234)) 56 data bytes
Is there any chance your nscd is caching a negative lookup from earlier?
No, as I have it stopped and restarted several times. This is its configuration: Telcontar:~ # cat /etc/nscd.conf | egrep -v "^[[:space:]]*$|^#" | grep hosts enable-cache hosts yes positive-time-to-live hosts 600 negative-time-to-live hosts 0 suggested-size hosts 211 check-files hosts yes persistent hosts no shared hosts yes max-db-size hosts 33554432 Telcontar:~ # The whole one: Telcontar:~ # cat /etc/nscd.conf | egrep -v "^[[:space:]]*$|^#" server-user nscd debug-level 0 paranoia no enable-cache passwd yes positive-time-to-live passwd 600 negative-time-to-live passwd 20 suggested-size passwd 211 check-files passwd yes persistent passwd yes shared passwd yes max-db-size passwd 33554432 auto-propagate passwd yes enable-cache group yes positive-time-to-live group 3600 negative-time-to-live group 60 suggested-size group 211 check-files group yes persistent group yes shared group yes max-db-size group 33554432 auto-propagate group yes enable-cache hosts yes positive-time-to-live hosts 600 negative-time-to-live hosts 0 suggested-size hosts 211 check-files hosts yes persistent hosts no shared hosts yes max-db-size hosts 33554432 enable-cache services yes positive-time-to-live services 28800 negative-time-to-live services 20 suggested-size services 211 check-files services yes persistent services yes shared services yes max-db-size services 33554432 enable-cache netgroup yes positive-time-to-live netgroup 28800 negative-time-to-live netgroup 20 suggested-size netgroup 211 check-files netgroup yes persistent netgroup yes shared netgroup yes max-db-size netgroup 33554432 Telcontar:~ # From Isengard to Telcontar, it works - but it uses dnsmasq instead of bind. AND, Isengard has: enable-cache hosts no (that's the single different line) I'll enable it. [...] It keeps working. Telcontar:~ # egrep -v "^[[:space:]]*$|^#" /etc/hosts.conf order hosts, bind multi on Telcontar:~ # Isengard:~ # egrep -v "^[[:space:]]*$|^#" /etc/hosts.conf grep: /etc/hosts.conf: No such file or directory Isengard:~ # I think it then uses another file, but I forget which. -- Cheers / Saludos, Carlos E. R. (from 15.0 x86_64 at Telcontar)