<?php $url = "https://www.r10.net"; $dns = dns_get_record($url , DNS_NS); $ns1 = $dns[0]["target"]; $ns2 = $dns[1]["target"]; ?>