Description ​
Looks up a domain by its name. ( E.G mnscript.com ) This operation is slow.
Arguments ​
string
- The domain name to lookup.
Returns ​
Domain
- The domain, or null if not found
Example ​
msc
using Console;
using Util;
using DNS;
// Looks up a domain record, then displays its information.
// This operation must send an API request to fetch the domain information, so can be slow.
string domainName = "mnscript.com";
Domain domain = DNS.LookupDomain(domainName);
if (Util.IsNull(domain)) {
Console.WriteLine("Domain does not exist: "..domainName);
} else {
Console.WriteLine("Domain Name: "..domain.GetName());
Console.WriteLine("Domain Owner: "..domain.GetOwnerID());
Console.WriteLine("Description: "..domain.GetDescription());
}