Enzo Matsumiya <ematsumiya@xxxxxxx> writes: > The initial value is the same as before (SMB_DNS_RESOLVE_INTERVAL_DEFAULT, 600s). > > The user don't need to know a value to be used, unless they know the > value the server uses (either manually set by themselves or by some > external script) and then they can use that same value for this new > dns_interval setting. > > A very simple example on how one could do it, if there's no desire to > use the default 600s: > > # TTL=$(dig +noall +answer my.server.domain | awk '{ print $2 }') > # echo $TTL > /proc/fs/cifs/dns_interval That's not what I meant. Sorry if I was unclear. If the upcalled program sets the record TTL (key's expire time), then any values set in /proc/fs/cifs/dns_interval will not work. The user might expect it to work, though.