dns stuff
merged with new crypto code