DNSimple.DNSimpleRestClient.AddRecord C# (CSharp) Method

AddRecord() public method

Create a record for the given domain. Makes a POST request to the Domain Records List resource.
public AddRecord ( int domainId, string name, string record_type, string content, int ttl = null, int priority = null ) : dynamic
domainId int The ID of the domain
name string The name of the DNS record
record_type string The type of the DNS record (A, CNAME, MX, etc.)
content string The value of the DNS record
ttl int The optional TTL (Time-To-Live) for this DNS record
priority int The optional priority for this DNS record
return dynamic
        public dynamic AddRecord(int domainId, string name, string record_type, string content, int? ttl = null, int? priority = null)
        {
            Require.Argument("domainId", domainId);

            return AddRecord(domainId.ToString(), name, record_type, content, ttl, priority);
        }

Same methods

DNSimpleRestClient::AddRecord ( string domain, string name, string record_type, string content, int ttl = null, int priority = null ) : dynamic