consul/website/source
Pierre Souchay 251156eb68 Added SOA configuration for DNS settings. (#4714)
This will allow to fine TUNE SOA settings sent by Consul in DNS responses,
for instance to be able to control negative ttl.

Will fix: https://github.com/hashicorp/consul/issues/4713

# Example

Override all settings:

* min_ttl: 0 => 60s
* retry: 600 (10m) => 300s (5 minutes),
* expire: 86400 (24h) => 43200 (12h)
* refresh: 3600 (1h) => 1800 (30 minutes)

```
consul agent -dev -hcl 'dns_config={soa={min_ttl=60,retry=300,expire=43200,refresh=1800}}'
```

Result:
```
dig +multiline @localhost -p 8600 service.consul

; <<>> DiG 9.12.1 <<>> +multiline @localhost -p 8600 service.consul
; (2 servers found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 36557
;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1
;; WARNING: recursion requested but not available

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;service.consul.		IN A

;; AUTHORITY SECTION:
consul.			0 IN SOA ns.consul. hostmaster.consul. (
				1537959133 ; serial
				1800       ; refresh (30 minutes)
				300        ; retry (5 minutes)
				43200      ; expire (12 hours)
				60         ; minimum (1 minute)
				)

;; Query time: 4 msec
;; SERVER: 127.0.0.1#8600(127.0.0.1)
;; WHEN: Wed Sep 26 12:52:13 CEST 2018
;; MSG SIZE  rcvd: 93
```
2018-10-10 15:50:56 -04:00
..
api docs: deprecate acl_datacenter and replace it with primary_datacenter 2018-10-10 12:16:47 -07:00
assets Add Deployment Guide and update links (#4487) 2018-10-03 11:37:36 -10:00
docs Added SOA configuration for DNS settings. (#4714) 2018-10-10 15:50:56 -04:00
intro website: quick typo fix (#4683) 2018-09-17 12:06:11 +01:00
layouts website: add docs for the Connect injection 2018-10-07 23:47:08 -07:00
.gitignore website: bulk copy from serf 2014-02-07 16:41:03 -08:00
404.html.md Tweaks 404 message. 2017-04-14 09:00:59 -07:00
android-manifest.json.erb Move to new branding 2017-03-30 18:46:50 -04:00
community.html.erb Update community.html.erb 2017-12-19 20:57:42 -08:00
configuration.html.erb Add missing word for Watches clarification 2018-07-25 15:34:45 -04:00
discovery.html.erb Corrects formatting of JSON in snippet 2018-06-29 18:36:47 -07:00
downloads.html.erb Move to new branding 2017-03-30 18:46:50 -04:00
downloads_tools.html.erb Update downloads_tools.html.erb 2018-05-12 22:30:05 +01:00
favicon.ico Move to new branding 2017-03-30 18:46:50 -04:00
index.html.erb website: an assortment of front-end updates (#4296) 2018-06-28 11:43:30 -07:00
microsoft-tile.xml.builder Move to new branding 2017-03-30 18:46:50 -04:00
robots.txt Use new Markdown syntaxes and add SEO descriptions 2014-10-19 19:42:13 -04:00
security.html.erb Move to new branding 2017-03-30 18:46:50 -04:00
segmentation.html.erb Fix "ensures all data" from original "ensure all data" 2018-06-29 18:05:42 -07:00
sitemap.xml.builder Add robots.txt and sitemap 2014-10-19 19:41:12 -04:00