dnscontrol/docs/_providers/namecheap.md
Patrick G a202b8ae53 Website fixes (Part 1) (#223)
* Fixed base template

- Made responsive for small screens
- Added DOCTYPE
- Added meta charset

* Added page titles

* Beautified CSS
2017-10-11 08:33:17 -04:00

1.3 KiB

name layout jsId
Namecheap Provider default NAMECHEAP

Namecheap Provider

Namecheap only provides a registrar provider implementation.

Configuration

In your providers config json file you must provide your Namecheap api username and key:

{% highlight json %} { "namecheap.com":{ "apikey": "yourApiKeyFromNameCheap", "apiuser": "yourUsername" } } {% endhighlight %}

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.

Metadata

This provider does not recognize any special metadata fields unique to Namecheap.

Usage

Example javascript:

{% highlight js %} var namecheap = NewRegistrar("namecheap.com","NAMECHEAP"); var R53 = NewDnsProvider("r53", "ROUTE53");

D("example.tld", namecheap, DnsProvider(R53), A("test","1.2.3.4") ); {%endhighlight%}

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.