change the CDB::lookup interface from strings to char*
use www.dkim-reputation.org/regdom-libs/ in place of just the two-level domain
use reg-dom libs to detect registered domains