Re: DNS resolver cache does not expire

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ideally we would want to toss a cached mapping of an ip address to hostname if
we get a EHOSTDOWN or equivalent on the socket connection request
(although in some cases NFS server may be exporting on one port, but not Samba
or vice versa - still better to remove a cached mapping).

On Thu, Jun 23, 2011 at 2:15 PM, Pavel Shilovsky <piastryyy@xxxxxxxxx> wrote:
> 2011/6/23 Grazvydas Ignotas <notasas@xxxxxxxxx>:
>> Hello,
>>
>> one of our slave servers have changed it's address, and I can no
>> longer access it's shares that are forwarded to by the main server
>> using DFS redirection. The slave server resolves correctly when trying
>> to access it directly, but when trying to access through a mount on
>> the main server, cifsFYI shows dns_resolve_server_name_to_ip returns
>> the old address. I've verified slave server names match and windows
>> clients can access those DFS shares correctly. It has been several
>> days since server address change. I'm running 2.6.38.2 kernel on
>> Ubuntu 10.04.
>>
>> Any way to clear that dns_resolver cache? I have no desire to reboot
>> the machine.
>>
>
> It seems that dns_resolver sets expiry timeout to zero here
> (http://lxr.free-electrons.com/source/security/keys/key.c#L310) and
> doesn't change it - so, it always returns cached value.
>
> David, can you comment on this problem, please?
>
> --
> Best regards,
> Pavel Shilovsky.
>



-- 
Thanks,

Steve
--
To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux