dnscontrol/docs/_providers/name.com.md

56 lines
1.5 KiB
Markdown
Raw Normal View History

2017-01-12 04:02:45 +08:00
---
name: "Name.com"
layout: default
jsId: NAMEDOTCOM
---
# Name.com Provider
## Configuration
In your providers config json file you must provide your name.com api username and access token:
{% highlight json %}
{
"name.com":{
"apikey": "yourApiKeyFromName.com-klasjdkljasdlk235235235235",
"apiuser": "yourUsername"
}
}
{% endhighlight %}
## Metadata
This provider does not recognize any special metadata fields unique to name.com.
## Usage
Example javascript (DNS hosted with name.com):
{% highlight js %}
var REG_NAMECOM = NewRegistrar("name.com","NAMEDOTCOM");
var NAMECOM = NewDnsProvider("name.com","NAMEDOTCOM");
D("example.tld", REG_NAMECOM, DnsProvider(NAMECOM),
A("test","1.2.3.4")
);
{%endhighlight%}
Example javascript (Registrar only. DNS hosted elsewhere):
{% highlight js %}
var REG_NAMECOM = NewRegistrar("name.com","NAMEDOTCOM");
var R53 = NewDnsProvider("r53", "ROUTE53");
2017-01-12 04:02:45 +08:00
D("example.tld", REG_NAMECOM, DnsProvider(R53),
A("test","1.2.3.4")
);
{%endhighlight%}
{% include alert.html text="Note: name.com does not allow control over the NS records of your zones via the api. It is not recommended to use name.com's dns provider unless it is your only dns host." %}
## Activation
In order to activate api functionality on your name.com account, you must apply to the api program.
The application form is [located here](https://www.name.com/reseller/apply). It usually takes a few days to get a response.
After you are accepted, you should receive your api token via email.