dnsdb/dnsdbq

if there's a /path after the host, don't add /lookup here

reedjc opened this issue · 2 comments

This hit me. Please document it. Or just always set to /lookup?

/* if there's a /path after the host, don't add /lookup here. */
x = 0;
for (p = dnsdb_server; *p != '\0'; p++)
x += (*p == '/');
lookup = (x < 3) ? "/lookup" : "";

vixie commented
vixie commented

Pull #57.