All of lore.kernel.org
 help / color / mirror / Atom feed
* What's a good default TTL for DNS keys in the kernel
@ 2020-04-14 14:20 ` David Howells
  0 siblings, 0 replies; 51+ messages in thread
From: David Howells @ 2020-04-14 14:20 UTC (permalink / raw)
  To: linux-nfs-u79uwXL29TY76Z2rM5mHXA,
	linux-cifs-u79uwXL29TY76Z2rM5mHXA,
	linux-afs-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	ceph-devel-u79uwXL29TY76Z2rM5mHXA
  Cc: dhowells-H+wXaHxf7aLQT0dZR+AlfA, keyrings-u79uwXL29TY76Z2rM5mHXA,
	netdev-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	fweimer-H+wXaHxf7aLQT0dZR+AlfA

Since key.dns_resolver isn't given a TTL for the address information obtained
for getaddrinfo(), no expiry is set on dns_resolver keys in the kernel for
NFS, CIFS or Ceph.  AFS gets one if it looks up a cell SRV or AFSDB record
because that is looked up in the DNS directly, but it doesn't look up A or
AAAA records, so doesn't get an expiry for the addresses themselves.

I've previously asked the libc folks if there's a way to get this information
exposed in struct addrinfo, but I don't think that ended up going anywhere -
and, in any case, would take a few years to work through the system.

For the moment, I think I should put a default on any dns_resolver keys and
have it applied either by the kernel (configurable with a /proc/sys/ setting)
or by the key.dnf_resolver program (configurable with an /etc file).

Any suggestion as to the preferred default TTL?  10 minutes?

David

^ permalink raw reply	[flat|nested] 51+ messages in thread

end of thread, other threads:[~2020-04-21  2:30 UTC | newest]

Thread overview: 51+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-14 14:20 What's a good default TTL for DNS keys in the kernel David Howells
2020-04-14 14:20 ` David Howells
2020-04-14 14:20 ` David Howells
2020-04-14 20:16 ` Jeff Layton
2020-04-14 20:16   ` Jeff Layton
     [not found]   ` <e751977dac616d93806d98f4ad3ce144bb1eb244.camel-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2020-04-15 17:07     ` Steve French
2020-04-15 17:07       ` Steve French
2020-04-15 17:07       ` Steve French
2020-04-16 10:15   ` David Howells
2020-04-16 10:15     ` David Howells
2020-04-15  9:44 ` Florian Weimer
2020-04-15  9:44   ` Florian Weimer
2020-04-16 10:27 ` David Howells
2020-04-16 10:27   ` David Howells
2020-04-16 10:33   ` Florian Weimer
2020-04-16 10:33     ` Florian Weimer
2020-04-16 13:01   ` David Howells
2020-04-16 13:01     ` David Howells
     [not found]   ` <128769.1587032833-S6HVgzuS8uM4Awkfq6JHfwNdhmdF6hFW@public.gmane.org>
2020-04-16 13:40     ` Chuck Lever
2020-04-16 13:40       ` Chuck Lever
2020-04-16 13:40       ` Chuck Lever
2020-04-17 11:31       ` Aurélien Aptel
2020-04-17 11:31         ` Aurélien Aptel
2020-04-17 23:23 ` Steve French
2020-04-17 23:23   ` Steve French
     [not found]   ` <CAH2r5mv5p=WJQu2SbTn53FeTsXyN6ke_CgEjVARQ3fX8QAtK_w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2020-04-18 18:10     ` Florian Weimer
2020-04-18 18:10       ` Florian Weimer
2020-04-18 18:10       ` Florian Weimer
2020-04-19  4:53       ` Steve French
2020-04-19  4:53         ` Steve French
2020-04-19  8:37 ` David Howells
2020-04-19  8:37   ` David Howells
     [not found]   ` <927453.1587285472-S6HVgzuS8uM4Awkfq6JHfwNdhmdF6hFW@public.gmane.org>
2020-04-20  0:58     ` Paulo Alcantara
2020-04-20  0:58       ` Paulo Alcantara
2020-04-20  0:58       ` Paulo Alcantara
     [not found]   ` <87imhvj7m6.fsf-jNnf+gw1pmM@public.gmane.org>
2020-04-20 13:13     ` David Howells
2020-04-20 13:13       ` David Howells
2020-04-20 13:13       ` David Howells
2020-04-20 18:21       ` Paulo Alcantara
2020-04-20 18:21         ` Paulo Alcantara
2020-04-20 18:21         ` Paulo Alcantara
2020-04-20 22:14       ` cifs - Race between IP address change and sget()? David Howells
2020-04-20 22:14         ` David Howells
2020-04-20 22:30         ` Jeff Layton
2020-04-20 22:30           ` Jeff Layton
2020-04-21  1:29           ` Ronnie Sahlberg
2020-04-21  1:29             ` Ronnie Sahlberg
2020-04-21  2:26             ` Steve French
2020-04-21  2:26               ` Steve French
2020-04-21  2:29           ` Steve French
2020-04-21  2:29             ` Steve French

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.