function preresolve( ip, domain, qtype ) ret = {} -- create table if -- for someyyplace.com, return CNAME for any query string.find(domain, "^someyyplace.com.$") or string.find(domain, "[%p]someyyplace.com.$") then ret[1] = { qtype = pdns.CNAME, content = "www.qupps.biz" } return 0, ret end return -1, ret -- nothing to do; tell Recursor to handle it end