Get IP from server (fetch)
JavaScript
var response = fetch('https://dns.google/resolve?name=larsholm.net');
response.then(function(response){
response.json().then(function(json){
console.log(json["Answer"][0]["data"]);
});
});
var response = fetch('https://dns.google/resolve?name=larsholm.net');
response.then(function(response){
response.json().then(function(json){
console.log(json["Answer"][0]["data"]);
});
});