Change gem from resolv to net/dns and add method options