Fixed bug copying bytes into Rdata field of resource records

Also started on iterative resolving algorithm