Add dns routine to satisfy the linker.
Add BIO_read and BIO_write, as well as remove some debugging code.