Get IP from server (fetch)

by Lars Holm Jensen

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"]);
  });
});