ref: 784a9598880c119d8701db059bae956eacd5db72
parent: fce9c3e65a940ff96a595340eb1e12620c73f029
author: cinap_lenrek <[email protected]>
date: Thu Oct 11 14:31:35 EDT 2018
ndb/dns: do recursive lookup for dnsslave=
--- a/sys/src/cmd/ndb/dnnotify.c
+++ b/sys/src/cmd/ndb/dnnotify.c
@@ -58,8 +58,8 @@
nips++;
return nips;
}
- list = dnresolve(name, Cin, Ta, req, nil, 0, 1, 1, nil);
- rrcat(&list, dnresolve(name, Cin, Taaaa, req, nil, 0, 1, 1, nil));
+ list = dnresolve(name, Cin, Ta, req, nil, 0, Recurse, 0, nil);
+ rrcat(&list, dnresolve(name, Cin, Taaaa, req, nil, 0, Recurse, 0, nil));
rp = list = randomize(list);
while(rp != nil && nips < maxips){
uchar *ip = ips + nips*IPaddrlen;
--- a/sys/src/cmd/ndb/dnstcp.c
+++ b/sys/src/cmd/ndb/dnstcp.c
@@ -265,8 +265,8 @@
return servers;
continue;
}
- list = dnresolve(servers->name, Cin, Ta, req, nil, 0, 1, 1, nil);
- rrcat(&list, dnresolve(servers->name, Cin, Taaaa, req, nil, 0, 1, 1, nil));
+ list = dnresolve(servers->name, Cin, Ta, req, nil, 0, Recurse, 0, nil);
+ rrcat(&list, dnresolve(servers->name, Cin, Taaaa, req, nil, 0, Recurse, 0, nil));
for(rp = list; rp != nil; rp = rp->next){
if(parseip(ip, rp->ip->name) == -1)
continue;