dynamic_resolve.t: skip cases without Net::DNS::Nameserver

If Net::DNS::Nameserver was not installed, we skip cases.