mirror of
https://github.com/samba-team/samba.git
synced 2024-12-28 07:21:54 +03:00
178e27de07
I realised this afternoon just how easy it is to add this, so I thought I'd implement it while the idea was fresh. nmbd forks at startup and uses a pipe to talk to its child. The child does the DNS lookups and the file descriptor of the child is added to the main select loop. While I was doing this I discovered a bug in nmbd that explains why the dns proxy option has been so expensive. The DNS cache entries in the WINS list were never being checked, which means we always did a DNS lookup even if we have done it before and it is in cache. I'm sure this used to work (I tested the DNS cache when I added it) so someone broke it :-( Anyway, the async DNS gets rid of the problem completely. I'll commit just the fix to the DNS cache bug to the 1.9.17 tree. You can disable async DNS by adding -DSYNC_DNS to the compile flags. |
||
---|---|---|
.. | ||
clientgen.c | ||
credentials.c | ||
namequery.c | ||
nmblib.c | ||
smbdes.c | ||
smbencrypt.c |