dns code improvements; e.g. change some warnings to info messages and improve memory safety
change lookup procedure to use a callback mechanism
some more whitespace fixes