1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00
samba-mirror/source/libsmb
Andrew Tridgell 178e27de07 Implemented asynchronous DNS lookups in nmbd.
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.
0001-01-01 00:00:00 +00:00
..
clientgen.c This is a set of generic SMB client routines. I needed this in a hurry 0001-01-01 00:00:00 +00:00
credentials.c casting cleanups 0001-01-01 00:00:00 +00:00
namequery.c 'The mother of all checkins' :-). Jeremy Allison (jallison@whistle.com) 0001-01-01 00:00:00 +00:00
nmblib.c Implemented asynchronous DNS lookups in nmbd. 0001-01-01 00:00:00 +00:00
smbdes.c casting cleanups 0001-01-01 00:00:00 +00:00
smbencrypt.c - change generate_challenge() to use md4 instead of des 0001-01-01 00:00:00 +00:00