Website Sources
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

17 lines
440 B

function nsLookup(host) {
$.ajax({
type: 'GET',
url: 'https://dns.google/resolve?name=' + host,
dataType: 'json',
success: function (result) {
if (result.Answer) {
if (result.Answer.length > 0) {
$('div[data-cloud-server="' + host + '"] i').removeClass('c-5');
$('div[data-cloud-server="' + host + '"] i').addClass('c-7');
}
}
}
});
}
nsLookup('cs1.twisterarmy.org');