Domain name registration using eNom API

Prabu D

1 min read

One of the most crucial requirements for establishing an online identity is registering a domain name. I came to know about eNom API which does the job in easier way. I have opportunity to learn about domain registration using eNom API.
eNom makes it easy for anybody to sell online services at prices that fit your core business, volume, and size. As a reseller you’ll have access to all eNom selling options. eNom offering over 70 TLDs from all over the world it will attract customers. For more detail refer http://www.enom.com/resellers/benefits-domains.aspx

So, you want to integrate your eNom reseller API ? Create your reseller account . and the steps you need to follow as,
API
1. IP Registration
In order to use the Enom API, you must first contact them and let them know the server IP address. This is part of Enom’s security to prevent unauthorised users being able to submit registration requests to your account.
2. Test Mode
eNom offers to demonstrate all API call in test mode. see the API interface setup here
Note : actually no domain will be registered and you will not be charged for test interface.
3. Run a demo API call
Make sure that you Add/Edit/Delete public IP addresses that are allowed to access your account on the test servers. To find your public IP click here
Construct a URL by appending the key/value pairs as a query string to enom API Interface URL. Then make a simple HTTP request and That’s it!
1. To Check specific domain name available ( CHECK )
[source]
URL http://resellertest.enom.com/interface.asp?command=check&
uid=resellid&
pw=resellpw&
sld=example&tld=com&responsetype=xml
[/source]
2. To list available domain names ( NAMESPINNER )
[source]
URL http://resellertest.enom.com/interface.asp?command=NameSpinner&
UID=resellid&
pw=resellpw&
SLD=example&TLD=com&
UseHyphens=true&UseNumbers=true
&MaxResults=10&ResponseType=XML
[/source]
3. To bill and register a domain name ( PURCHASE )
[source]
URL http://resellertest.enom.com/interface.asp?command=Purchase&
uid=resellid&
pw=resellpw&sld=resellerdocs104
&tld=com&ResponseType=XML
[/source]
4. To get domain status information ( GETDOMININFO )
[source]
URL http://resellertest.enom.com/interface.asp?command=GetDomainInfo&
UID=resellid&
PW=resellpw&sld=resellerdocs&
tld=com&ResponseType=XML
[/source]
5. To set domain name server (DNS)
[source]
URL http://resellertest.enom.com/interface.asp?command=UpDateCusPreferences&
uid=resellid&
pw=resellpw&
usedns=0&dns1=ns1.name-services.com&
dns2=ns2.name-services.com&responsetype=xml
[/source]
6. To set host records ( SETHOSTS )
[source]
URL http://resellertest.enom.com/interface.asp?command=SetHosts&
uid=resellid&
pw=resellpw&sld=resellerdocs&tld=com&
HostName1=@&RecordType1=A&Address1=66.150.5.189
&HostName2=photos&RecordType2=CNAME&Address2=photos.msn.com.&
HostName3=yahoo&RecordType3=URL&Address3=204.71.200.72&
HostName4=msn&RecordType4=FRAME&
Address4=http://www.msn.com&responsetype=xml
[/source]
See more catalog enom provides http://www.enom.com/APICommandCatalog/index.htm
Sample code using ruby to search availability of doeazy.com domain using eNom API
[source]
check_url = “http://resellertest.enom.com/interface.asp?
command=check&uid=resellid&pw=resellpw&sld=doeazy&tld=com&responsetype=xml”
@available_domain_list =[]
reader = Nokogiri::XML(open(check_url))
reader.search(“interface-response”).each do |node|
node.search(“RRPText”).each { |att| @status = att.content }
node.search(“DomainName”).each { |att| @available_domain_list << att.content } end if @status == "Domain available" available = true response = "Congratulations!
#{@available_domain_list} is available.”
else
response = “#{@available_domain_list} is not available.”
@available_domain_list = []
end
return response
[/source]

Related posts:

2 Replies to “Domain name registration using eNom API”

Comments are closed.