open-consul/website/source/docs/guides
Pierre Souchay 42f250fa53 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
..
acl.html.md agent: add primary_datacenter and connect replication config options 2018-10-10 12:17:59 -07:00
areas.html.markdown.erb docs: deprecate acl_datacenter and replace it with primary_datacenter 2018-10-10 12:16:47 -07:00
autopilot.html.md fix a couple html errors (#4456) 2018-07-26 16:30:24 -07:00
bootstrapping.html.md Remove all mention of Atlas, even in deprecated changelogs 2018-08-03 10:51:18 -07:00
connect-production.md Fix some doc typos. 2018-06-25 12:26:21 -07:00
consul-containers.html.md a couple more corrections 2018-07-27 19:39:44 -04:00
creating-certificates.html.md update encryption doc and add guide for creating certificates (#4238) 2018-06-18 15:25:35 -04:00
datacenters.html.md Include a warning about the interaction between `translate_wan_addrs` and `bind_addr` in the Basic WAN guide. 2017-12-14 13:12:04 -08:00
deployment-guide.html.md Fix retry_join config documentation (#4757) 2018-10-05 14:16:02 -04:00
deployment.html.md Add Deployment Guide and update links (#4487) 2018-10-03 11:37:36 -10:00
dns-cache.html.md Added SOA configuration for DNS settings. (#4714) 2018-10-10 15:50:56 -04:00
external.html.md Update external.html.md 2018-01-12 13:23:16 -08:00
forwarding.html.md Ensure that errors setting up the DNS servers get propagated back to the shell (#4598) 2018-09-07 10:48:29 -04:00
geo-failover.html.md Fix a couple of minor typos found in docs. 2018-02-13 16:21:12 +00:00
index.html.md Added guide for Windows Service 2018-06-26 18:23:55 -04:00
leader-election.html.md Clarification around locking (#3853) 2018-02-01 14:08:06 -06:00
manual-bootstrap.html.md fix a couple html errors (#4456) 2018-07-26 16:30:24 -07:00
monitoring-telegraf.html.md Update monitoring-telegraf.html.md 2018-08-24 16:48:02 +02:00
outage.html.md Fix syntax error. 2017-11-20 20:17:20 -08:00
performance.html.md Add Deployment Guide and update links (#4487) 2018-10-03 11:37:36 -10:00
segments.html.markdown.erb Fix docs/guides/segements sidebar selection. 2017-09-19 16:45:39 -05:00
semaphore.html.md Update semaphore guide (#4661) 2018-10-04 12:06:53 -10:00
sentinel.html.markdown.erb Update sentinel.html.markdown.erb 2017-10-13 12:15:08 -07:00
servers.html.md Add Deployment Guide and update links (#4487) 2018-10-03 11:37:36 -10:00
windows-guide.html.md Changes made : 2018-06-28 21:18:14 -04:00