Commit Graph

116 Commits (aa1519c9f716f1e1075cfd95de88206fa759fcab)

Author SHA1 Message Date
Frank Schroeder 375825f34c Do not recurse when the service address is a local cname
8 years ago
Frank Schroeder b6c69ebf5d
agent: refactor DNS and HTTP server
8 years ago
Frank Schroeder 10540f8d5f
agent: fix logging
8 years ago
Frank Schroeder 3e39f04527
dns: do not log socket close during shutdown
8 years ago
Frank Schroeder 632f837c98
agent: shutdown dns servers on error
8 years ago
James Phillips 3103f7f673 Merge pull request #2690 from zeroae/f-simple-rfc2782
8 years ago
James Phillips e9cc66ab51
Fixes issue with missing CNAME for services with non-IP addresses set in SRV responses.
8 years ago
Patrick Sodré c135c08fb2 Simple RFC 2782 support with optional .service tag
8 years ago
Kyle Havlovitz 8e621eb9c8 Set MaxStale default to 10 years and add a stale counter (#2481)
8 years ago
James Phillips 7b98ae921e Adds support for DNS recurse truncation. (#2467)
8 years ago
Kyle Havlovitz 63534aca7e Added tests for lookups on the 'addr.consul' domain
8 years ago
Kyle Havlovitz 2a26597769 Give the service address in SRV lookup when it differs from the node's
8 years ago
Kyle Havlovitz 554440ab1d Resolve Consul CNAME records on external services (#2444)
8 years ago
Pivotal DX129 fe61650ef0 Merge remote-tracking branch 'upstream/master'
8 years ago
James Phillips ed7356dd5c
Changes default DNS allow_stale to true.
8 years ago
Pierre Delagrave d9bd41fc4d Renamed dns config parameter internal_client_timeout for recursor_timeout
8 years ago
Pierre Delagrave c8c4b9d344 Added a configurable timeout to the client making DNS queries to downstream name servers
8 years ago
James Phillips c0ff412650
Factors translate out into a separate file and makes safe for in-memory RPCs.
8 years ago
David van Geest cdeff022dd
Translate Address to tagged WAN address in HTTP API when appropriate.
8 years ago
James Phillips 456a4934f0
Runs `go fmt`.
8 years ago
Max Timchenko 3b08db47dc
Corrects two issues with DNS prepared query failover
8 years ago
James Phillips 17c10d78bc
Passes the index by reference so we can control the allocation.
8 years ago
James Phillips f7fcb03004
Makes name compares case-insensitive.
8 years ago
James Phillips 6332e2b367
Avoids allocations and function calls if no extra data is present.
8 years ago
James Phillips e30b99cef5
Renames "seen" to "resolved".
8 years ago
James Phillips 34d6c2d5e1
Fixes the DNS SRV trim bug.
8 years ago
James Phillips bcb0f71759
Finishes up DNS compression by adding opt-out, tests, and documentation. Fixes trim routine.
8 years ago
epipho 41db005d0b
Fix panic where r.Compress would be set before checking for errors.
8 years ago
epipho d965e90306
Compress all DNS responses to prevent them from going over the 512 byte
8 years ago
Ryan Uber 62884a22d4 consul: send agent source data as separate query source
9 years ago
Ryan Uber 104b234dde agent: always pass local agent query source, allow override
9 years ago
Ryan Uber d567d6a6d8 consul: send origin node + dc when executing prepared queries
9 years ago
Ryan Uber 865c264b9c agent: set origin during PQ execution
9 years ago
Sean Chittenden 69696a9c1b Correctly detect that an answer has been truncated
9 years ago
Sean Chittenden efe940e7c4 Remove dead and incorrect code
9 years ago
Sean Chittenden c5c8daf07a Trim UDP responses per configuration
9 years ago
Sean Chittenden 9fb64ab114 Allow adjusting the number of DNS records in a response...
9 years ago
Patrick Feliciano 74623c372a Adding singleton option to DNS for getaddrinfo bug.
9 years ago
James Phillips 5c80647e34 Tweaks algorithm so it's safe with an empty list and adds a PQ test.
9 years ago
Igor Dubinskiy 3a25860270 Make sure UDP DNS responses aren't larger than allowed
9 years ago
James Phillips 6790930c4e Factors address translation into a single function.
9 years ago
James Phillips c60a526fde Sets up config for more address tags down the road, renames struct members.
9 years ago
Evan Gilman de8fd561d0 Use a map for additional node addresses
9 years ago
Evan Gilman a3240d28ba Consider WAN addresses during Node and SRV record lookup
9 years ago
Evan Gilman 496cf5ae73 Implement `translate_wan_addrs` config option
9 years ago
James Phillips 651f255b9b Converts the DNS metric to a gauge which gives us a count and a time.
9 years ago
James Phillips a4dc11167f Adds telemetry on number of DNS queries served, per-agent.
9 years ago
James Phillips cd6be4a88d Avoids taking the length again when parsing DNS queries.
9 years ago
James Phillips 4715c04c98 Adds a test to make sure a stale retry terminates.
9 years ago
James Phillips e9480ecb02 Plumbs the service name back and uses agent-specific TTL settings as a fallback.
9 years ago