diff options
author | Samba Release Account <samba-bugs@samba.org> | 1997-07-06 12:06:23 +0000 |
---|---|---|
committer | Samba Release Account <samba-bugs@samba.org> | 1997-07-06 12:06:23 +0000 |
commit | 350dfc57dd3001ba27519000a2ab9dd541a66ac7 (patch) | |
tree | 87a76371a4b6f1a45fefbab72dbe2364072bd673 /source/nameservreply.c | |
parent | fcbd59bcefdc649ea9c2ff0418ee2d228c32ff90 (diff) | |
download | samba-350dfc57dd3001ba27519000a2ab9dd541a66ac7.tar.gz samba-350dfc57dd3001ba27519000a2ab9dd541a66ac7.tar.xz samba-350dfc57dd3001ba27519000a2ab9dd541a66ac7.zip |
replaced the "wins proxy" to treat NetBIOS names as DNS names with new
"dns proxy" option. the "wins proxy" option should be used for broadcast
only hosts, and isn't properly implemented anyway.
the new "dns proxy" option can be disabled if the (blocking) dns resolution
takes up a significant amount of time. this _will_ occur if gethostbyname
does external DNS lookups, instead of just (immediately) returning entries
in /etc/hosts.
lkcl
Diffstat (limited to 'source/nameservreply.c')
-rw-r--r-- | source/nameservreply.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/source/nameservreply.c b/source/nameservreply.c index 9e46b803039..81ffe9ffae6 100644 --- a/source/nameservreply.c +++ b/source/nameservreply.c @@ -559,12 +559,13 @@ void reply_name_query(struct packet_struct *p) } /* do we want to do dns lookups? */ - /* XXXX this DELAYS nmbd while it does a search. not a good idea - but there's no pleasant alternative. phil@hands.com suggested - making the name a full DNS name, which would succeed / fail - much quicker. + /* XXXX this DELAYS nmbd while it does a search. lp_dns_proxy() + can be switched off, to ensure that the blocking doesn't occur. + a better solution would be to fork, but this will require a + mechanism to carry on processing after the query is resolved + (similar to the netbios queue). */ - if (success && !n && (lp_wins_proxy() || !bcast)) + if (success && !n && (lp_dns_proxy() || !bcast)) { n = dns_name_search(question, p->timestamp); } |