2017-04-01 21:44:49 +08:00
|
|
|
---
|
2017-10-11 20:33:17 +08:00
|
|
|
name: Namecheap Provider
|
2017-04-01 21:44:49 +08:00
|
|
|
layout: default
|
|
|
|
jsId: NAMECHEAP
|
|
|
|
---
|
|
|
|
|
|
|
|
# Namecheap Provider
|
|
|
|
|
|
|
|
## Configuration
|
|
|
|
|
|
|
|
In your providers config json file you must provide your Namecheap api
|
|
|
|
username and key:
|
|
|
|
|
|
|
|
{% highlight json %}
|
|
|
|
{
|
2017-10-11 20:33:52 +08:00
|
|
|
"namecheap":{
|
2017-04-01 21:44:49 +08:00
|
|
|
"apikey": "yourApiKeyFromNameCheap",
|
|
|
|
"apiuser": "yourUsername"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{% endhighlight %}
|
|
|
|
|
2017-04-25 23:24:55 +08:00
|
|
|
You can optionally specify BaseURL to use a different endpoint - typically the
|
|
|
|
sandbox:
|
|
|
|
|
|
|
|
{% highlight json %}
|
|
|
|
{
|
|
|
|
"namecheap.com":{
|
|
|
|
"apikey": "yourApiKeyFromNameCheap",
|
|
|
|
"apiuser": "yourUsername"
|
|
|
|
"BaseURL": "https://api.sandbox.namecheap.com/xml.response"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{% endhighlight %}
|
|
|
|
|
|
|
|
if BaseURL is omitted, the production namecheap url is used.
|
|
|
|
|
|
|
|
|
2017-04-01 21:44:49 +08:00
|
|
|
## Metadata
|
|
|
|
|
|
|
|
This provider does not recognize any special metadata fields unique to
|
|
|
|
Namecheap.
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
Example javascript:
|
|
|
|
|
|
|
|
{% highlight js %}
|
2017-10-11 20:33:52 +08:00
|
|
|
var REG_NAMECHEAP = NewRegistrar("namecheap","NAMECHEAP");
|
2017-06-01 01:12:40 +08:00
|
|
|
var R53 = NewDnsProvider("r53", "ROUTE53");
|
2017-04-01 21:44:49 +08:00
|
|
|
|
2017-10-11 20:33:52 +08:00
|
|
|
D("example.tld", REG_NAMECHEAP, DnsProvider(R53),
|
2017-04-01 21:44:49 +08:00
|
|
|
A("test","1.2.3.4")
|
|
|
|
);
|
|
|
|
{%endhighlight%}
|
|
|
|
|
2017-10-24 02:16:16 +08:00
|
|
|
Namecheap provides custom redirect records URL, URL301, and FRAME. These
|
|
|
|
records can be used like any other record:
|
|
|
|
|
|
|
|
{% highlight js %}
|
|
|
|
var REG_NAMECHEAP = NewRegistrar("namecheap","NAMECHEAP");
|
|
|
|
var NAMECHEAP = NewDnsProvider("namecheap","NAMECHEAP");
|
|
|
|
|
|
|
|
D("example.tld", REG_NAMECHEAP, DnsProvider(NAMECHEAP),
|
|
|
|
URL('@', 'http://example.com/'),
|
|
|
|
URL('www', 'http://example.com/'),
|
|
|
|
URL301('backup', 'http://backup.example.com/')
|
|
|
|
)
|
|
|
|
{% endhighlight %}
|
|
|
|
|
2017-04-01 21:44:49 +08:00
|
|
|
## Activation
|
|
|
|
|
|
|
|
In order to activate api functionality on your Namecheap account, you must
|
|
|
|
enable it for your account and wait for their review process. More information
|
|
|
|
on enabling API access is [located
|
|
|
|
here](https://www.namecheap.com/support/api/intro.aspx).
|