Home > Uncategorized > Automatically add #Sedo verification to a batch of domain names using #NameCheap #API

Automatically add #Sedo verification to a batch of domain names using #NameCheap #API

If you are listing domains on Sedo, it’s likely that you have a number of domains, and perhaps instead of going through the process of manually adding the CNAME record to every domain, you can use NameCheap’s API in C# to automatically add CNAME records.

This is a follow-on to the previous blog post, shown below; Classes mentioned in this post will not be repeated, so you should follow this first;

Given a list of domains in a text file (one domain per line), add this to the project with the build action “copy always”.

var domains = File.ReadAllLines("domainList.txt");
foreach (var domain in domains)
{
	Console.WriteLine(domain);
	var domainTld = Regex.Match(domain, @"\.\w+$").Value;
	var domainWithoutTld = domain.Replace(domainTld, "");
	domainTld = domainTld.Substring(1);
	var hosts = GetHostsFromDomain(domainWithoutTld, domainTld);
	Thread.Sleep(TimeSpan.FromSeconds(1));
	hosts.Add(new HostRecord { Name = "***ID***", Type = "CNAME", Value = "verify.sedo.com" });
	Thread.Sleep(TimeSpan.FromSeconds(1));
	SetHostRecords(domainWithoutTld, domainTld, hosts);
	Thread.Sleep(TimeSpan.FromSeconds(1));
}

Where evidently ***ID*** is replaced with your own personal ID from Sedo. The one second delays are to help prevent throttling, which the NameCheap API uses to prevent abuse.

And, if you’re interested, this is the list of domains that is going on sale;

webserverdown.com
vatapi.co.uk
universaltravelsearch.com
u2fapi.com
tweetjs.com
tempemailaddress.com
resxtranslate.com
printfromwindowsphone.com
printfromipad.com
outsourcetranslation.com
omadataobjects.com
listoftaxis.info
listofpubs.info
listofhotels.info
listofhauliers.info
listofestateagents.info
listofdevelopers.info
listofcardealers.info
listofbanks.info
javatiger.com
installipa.com
gotoeuro.net
freetextuk.com
freebiesms.com
freebiebitcoin.com
electoralrollapi.com
domaindeflect.com
dns-js.com
derrycreativescollective.com
createfreeapp.com
burnersms.com
airportdelays.org

Categories: Uncategorized
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: