Commit Graph

79 Commits (74623c372a8fcb5352588efc8fdefb6094d00178)

Author SHA1 Message Date
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
James Phillips 81b43135f9 Adds unit tests for prepared queries and DNS, using existing tests for equivalence.
9 years ago
James Phillips 4a0a60af55 Adds DNS support for prepared queries (needs tests).
9 years ago
James Phillips 989619cb6b Moves DNS over to new shuffle and filter functions.
9 years ago
James Phillips d57431e300 Gets new structs changes to compile, adds some corner case handling and extra unit tests.
9 years ago
Dale Wijnand 5a28ebcaa3 Fix a bunch of typos.
9 years ago
Wim 0bc4d9322e Allow AAAA queries for nodeLookup
9 years ago
Wim 2701bb5cc2 No NXDOMAIN when the answer is empty
9 years ago
Wim 4a1dc90cba Limit the DNS responses after getting the NodeRecords
9 years ago
Wim 369982270d Return SOA/not found when the answer is empty
9 years ago
Ryan Uber 05216d3cc4 agent: log network address of DNS clients
9 years ago
Ryan Breen 018fd69aa2 Merge pull request #1143 from hashicorp/GH-1142
9 years ago
Ryan Breen 42648438a0 Check NXDOMAIN after filtering nodes
9 years ago
Wim 5647a37ffe Recurse when PTR answer is empty
9 years ago
Wim 3b1bcaea98 Send SOA with negative responses
10 years ago
Ryan Uber fb3938d88e agent: dns uses the configured token during queries
10 years ago
Armon Dadgar 27a820d611 agent: Adding test for DNS enable_truncate
10 years ago
Ryan Uber c9fd3eb469 agent: re-work DNS tests to not rely on the external network
10 years ago
Ryan Uber 116f8b9131 agent: pass through CNAME types for service resolution
10 years ago
Matt Good 062e4f94c0 Remove unnecessary DNS test entry
10 years ago
Matt Good 65ada1a62d Use DNS server startup callbacks
10 years ago
Dave Tucker 18b5ab3539 Don't forget to Shutdown the DNS Server!
10 years ago
Evan Broder ee6d59d4dd Add "only_passing" option to DNS config
10 years ago
Armon Dadgar 419447d9f7 agent: Fix de-duplication of SRV with service address
10 years ago
Armon Dadgar 23b9c96169 consul: Fixing merge conflict
10 years ago
Armon Dadgar f2e1065246 agent: Testing reverse lookup with custom TLD
10 years ago
dankennedy 63af8d08e1 replaced consul domain with configured domain. Fixes #582
10 years ago
Daniel Malon bd65cbb7d7 use the service specific address in SRV response
10 years ago
Daniel Malon 051ac8eb0b advertise specific address for a service
10 years ago
Ali Abbas d73e1cae85 since dns.TXT is an external dependency, it is safer to add keys to the fields to avoid some potential ordering issues if changes in this field occur with upstream
10 years ago
Veres Lajos 3b1068387a typofixes - https://github.com/vlajos/misspell_fixer
10 years ago
Ali Abbas e395420af6 cleanup unreachable code
10 years ago
Armon Dadgar 50e21b071c agent: Adding TODO for future optimization
10 years ago
lalyos 8f04401648 agent: implementing reverse dns lookup for ipv4 and ipv6
10 years ago
Armon Dadgar cf7e9e40d5 Fixing unit tests
10 years ago
foostan 35b006d884 Add multiple recursor definition support
10 years ago
Alex Wheeler 6cac440a8d Adding support for enabling the DNS truncate flag for UDP queries.
10 years ago
Jack Pearkes 1e4bdf6820 go fmt
10 years ago