mirror of
				https://github.com/StackExchange/dnscontrol.git
				synced 2024-05-11 05:55:12 +00:00 
			
		
		
		
	* fix get-zones code block indentation * extend D_EXTEND to handle subdomains * fix targets: make absolute incl. subdomain where necessary * clarify subdomain target test (not IP && not fqdn) * Add parse_tests for D and D_EXTEND * _getDomainObject: examine all domains * human readable form * consistent test IP addresses * Improve docs and formatting * propagate subdomain to canonicalisation * en-US spelling * rm extraneous console.log * ignore subdomain for CF_REDIRECT * clarify D_EXTEND doc re. CF_REDIRECT * rm extraneous linebreak * _getDomainObject: examine all domains * human readable form * consistent test IP addresses * propagate subdomain to canonicalisation * en-US spelling * rm extraneous console.log * ignore subdomain for CF_REDIRECT * clarify D_EXTEND doc re. CF_REDIRECT * rm extraneous linebreak * GANDI_V5: Use github.com/go-gandi/go-gandi, not github.com/tiramiseb/go-gandi (#883) * DOCUMENTATION: Fix error in CNAME.md (#877) The current example `CNAME("def", "test.subdomain"), // def.example.com -> test.subdomain.example.com` is invalid (correctly raises a validation error, "ERROR: in CNAME def.example.com: target (test.subdomain) must end with a (.)") * typos, fmt; example syntax fixes and real output * formatting; re-add lost comment * RecordConfig subdomain should be nullable * providers/cscglobal/api.go: Fix fmt string * More tests and docs * go generate Co-authored-by: Ben L <47653825+ad8-bdl@users.noreply.github.com>
		
			
				
	
	
		
			112 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
			
		
		
	
	
			112 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
{
 | 
						|
  "registrars": [],
 | 
						|
  "dns_providers": [],
 | 
						|
  "domains": [
 | 
						|
    {
 | 
						|
      "name": "foo.com",
 | 
						|
      "registrar": "none",
 | 
						|
      "dnsProviders": {},
 | 
						|
      "records": [
 | 
						|
        {
 | 
						|
          "type": "R53_ALIAS",
 | 
						|
          "name": "mxtest",
 | 
						|
          "target": "foo.com.",
 | 
						|
          "r53_alias": {
 | 
						|
            "type": "MX"
 | 
						|
          }
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "R53_ALIAS",
 | 
						|
          "name": "atest",
 | 
						|
          "target": "foo.com.",
 | 
						|
          "r53_alias": {
 | 
						|
            "type": "A"
 | 
						|
          }
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "R53_ALIAS",
 | 
						|
          "name": "atest",
 | 
						|
          "target": "foo.com.",
 | 
						|
          "r53_alias": {
 | 
						|
            "type": "A",
 | 
						|
            "zone_id": "Z2FTEDLFRTF"
 | 
						|
          }
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "R53_ALIAS",
 | 
						|
          "name": "aaaatest",
 | 
						|
          "target": "foo.com.",
 | 
						|
          "r53_alias": {
 | 
						|
            "type": "AAAA"
 | 
						|
          }
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "R53_ALIAS",
 | 
						|
          "name": "aaaatest",
 | 
						|
          "target": "foo.com.",
 | 
						|
          "r53_alias": {
 | 
						|
            "type": "AAAA",
 | 
						|
            "zone_id": "ERERTFGFGF"
 | 
						|
          }
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "R53_ALIAS",
 | 
						|
          "name": "cnametest",
 | 
						|
          "target": "foo.com.",
 | 
						|
          "r53_alias": {
 | 
						|
            "type": "CNAME"
 | 
						|
          }
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "R53_ALIAS",
 | 
						|
          "name": "ptrtest",
 | 
						|
          "target": "foo.com.",
 | 
						|
          "r53_alias": {
 | 
						|
            "type": "PTR"
 | 
						|
          }
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "R53_ALIAS",
 | 
						|
          "name": "txttest",
 | 
						|
          "target": "foo.com.",
 | 
						|
          "r53_alias": {
 | 
						|
            "type": "TXT"
 | 
						|
          }
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "R53_ALIAS",
 | 
						|
          "name": "srvtest",
 | 
						|
          "target": "foo.com.",
 | 
						|
          "r53_alias": {
 | 
						|
            "type": "SRV"
 | 
						|
          }
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "R53_ALIAS",
 | 
						|
          "name": "spftest",
 | 
						|
          "target": "foo.com.",
 | 
						|
          "r53_alias": {
 | 
						|
            "type": "SPF"
 | 
						|
          }
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "R53_ALIAS",
 | 
						|
          "name": "caatest",
 | 
						|
          "target": "foo.com.",
 | 
						|
          "r53_alias": {
 | 
						|
            "type": "CAA"
 | 
						|
          }
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "R53_ALIAS",
 | 
						|
          "name": "naptrtest",
 | 
						|
          "target": "foo.com.",
 | 
						|
          "r53_alias": {
 | 
						|
            "type": "NAPTR"
 | 
						|
          }
 | 
						|
        }
 | 
						|
      ]
 | 
						|
    }
 | 
						|
  ]
 | 
						|
}
 |