github.com/philhug/dnscontrol@v0.2.4-0.20180625181521-921fa9849001/docs/_providers/name.com.md (about)

     1  ---
     2  name: Name.com
     3  title: Name.com Provider
     4  layout: default
     5  jsId: NAMEDOTCOM
     6  ---
     7  
     8  # Name.com Provider
     9  
    10  ## Configuration
    11  In your credentials file you must provide your name.com api username and access token:
    12  
    13  {% highlight json %}
    14  {
    15    "name.com":{
    16      "apikey": "yourApiKeyFromName.com",
    17      "apiuser": "yourUsername"
    18    }
    19  }
    20  {% endhighlight %}
    21  
    22  There is another key name `apiurl` but it is optional and defaults to the correct value. If you want to use the test environment ("OT&E"), then add this:
    23  
    24      "apiurl": "https://api.dev.name.com",
    25  
    26  ## Metadata
    27  This provider does not recognize any special metadata fields unique to name.com.
    28  
    29  ## Usage
    30  **Example Javascript (DNS hosted with name.com):**
    31  
    32  {% highlight js %}
    33  var REG_NAMECOM = NewRegistrar("name.com","NAMEDOTCOM");
    34  var NAMECOM = NewDnsProvider("name.com","NAMEDOTCOM");
    35  
    36  D("example.tld", REG_NAMECOM, DnsProvider(NAMECOM),
    37      A("test","1.2.3.4")
    38  );
    39  {%endhighlight%}
    40  
    41  
    42  **Example Javascript (Registrar only. DNS hosted elsewhere):**
    43  
    44  {% highlight js %}
    45  var REG_NAMECOM = NewRegistrar("name.com","NAMEDOTCOM");
    46  var R53 = NewDnsProvider("r53", "ROUTE53");
    47  
    48  D("example.tld", REG_NAMECOM, DnsProvider(R53),
    49      A("test","1.2.3.4")
    50  );
    51  {%endhighlight%}
    52  
    53  {% 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." %}
    54  
    55  ## Activation
    56  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.