Add a simple test and mock for genDNS