Commit Graph

163 Commits (888e302f6e87f27d0c8a0c6facfd6c3a6c8033c5)

Author SHA1 Message Date
Siva Prasad 865068a358
DNS : Fixes recursors answering the DNS query to properly return the correct response. (#4461)
6 years ago
Matt Keeler 0fd7e97c2d Merge remote-tracking branch 'origin/master' into bugfix/prevent-multi-cname
6 years ago
Matt Keeler cbf8f14451 Ensure TXT RRs always end up in the Additional section except for ANY or TXT queries
6 years ago
Matt Keeler 22c2be5bf1 Fix some edge cases and add some tests.
6 years ago
mkeeler 6813a99081 Merge remote-tracking branch 'connect/f-connect'
7 years ago
Matt Keeler 8216816e3f Make filtering out TXT RRs only apply when they would end up in Additional section
7 years ago
Mitchell Hashimoto 4d852e62a3
agent: address PR feedback
7 years ago
Mitchell Hashimoto 6313bc5615
agent: clarified a number of comments per PR feedback
7 years ago
Mitchell Hashimoto 7d79f9c46f
agent/consul: implement Health.ServiceNodes for Connect, DNS works
7 years ago
Mitchell Hashimoto 406366c45b
agent: working DNS for Connect queries, I think, but have to
7 years ago
Matt Keeler 6cc0422408 Add configuration entry to control including TXT records for node meta in DNS responses
7 years ago
Matt Keeler 27fe219918
Merge pull request #4131 from pierresouchay/enable_full_dns_compression
7 years ago
Wim 16ce8d9ed2 Add service reverse lookup tests
7 years ago
Pierre Souchay bb92420873 Test fix, trying to pass Travis tests
7 years ago
Pierre Souchay cfa5986df7 Fixed unit tests and updated limits
7 years ago
Pierre Souchay c715408c87 More Tests cases compression/no compression
7 years ago
Pierre Souchay 36827418b7 Improved unit tests debug info when it fails
7 years ago
Pierre Souchay 9243daeb0e Run new test in parallel
7 years ago
Pierre Souchay 5b4905e11d More test cases + travis flacky
7 years ago
Pierre Souchay fadfb95e07 Added Unit tests + fixed boudary limit
7 years ago
Kyle Havlovitz af4be34a2a
Update make static-assets goal and run format
7 years ago
Matt Keeler 0619efc254 GH-3798: More PR Updates
7 years ago
Matt Keeler 136efeb3be GH-3798: A couple more PR updates
7 years ago
Matt Keeler cec8d5145b GH-3798: A few more PR updates
7 years ago
Matt Keeler d065d3a6db GH-3798: Updates for PR
7 years ago
Matt Keeler 283a7942c4 GH-3798: Wrap DNS request validation in a retry
7 years ago
Matt Keeler 5794fa8837 GH-3798: Add DNS near=_ip test
7 years ago
Matt Keeler 27899f9f46
Merge pull request #3948 from pierresouchay/fix_tcp_dns_limit
7 years ago
Matt Keeler ebc6f414ac Formatting update
7 years ago
Josh Soref 94835a2715 Spelling (#3958)
7 years ago
Pierre Souchay aebfcb6767 Fixed minor typo (+ travis tests is unstable)
7 years ago
Pierre Souchay 93fa1f6f49 Optimize size for SRV records, should improve performance a bit
7 years ago
Pierre Souchay d0e45f22df Fixed wrong format of debug msg in unit test
7 years ago
Pierre Souchay 7d59249d96 Avoid issue with compression of DNS messages causing overflow
7 years ago
Pierre Souchay 419bf29041 Cleaner Unit tests from suggestions from @preetapan
7 years ago
Pierre Souchay be39fb20cc [BUGFIX] do not break when TCP DNS answer exceeds 64k
7 years ago
Pierre Souchay 0b7f620dc6 Allow to control the number of A/AAAA Record returned by DNS
7 years ago
James Phillips 3724e49ddf
Fixes a panic on TCP-based DNS lookups.
7 years ago
Veselkov Konstantin 7de57ba4de remove golint warnings
7 years ago
Frank Schröder 350932161d dns: return NXDOMAIN if datacenter is invalid (#3200) (#3596)
7 years ago
Ryan Slade 85e4aea9d1 Replace time.Now().Sub(x) with time.Since(x)
7 years ago
Preetha Appan e7dc345cfa Fix unit test after dns library upgrade to account for correct data length
7 years ago
Frank Schroeder abe41d231c
Fix tests after config refactor
7 years ago
Patrick Sodré 2cc6ac542c
Add RFC1464 tests
7 years ago
Patrick Sodré 12fb0bfd5b
Use verify for NodeLookup CNAME, and TXT tests
7 years ago
Patrick Sodré 655c89ee10
Fix editorial suggestions
7 years ago
Patrick Sodré ab90865865
Add test for NoteLookup ANY request
7 years ago
Patrick Sodré 4c6b8022c2
Add test for querying Node.Meta with DNS TXT
7 years ago
Frank Schröder 12216583a1 New config parser, HCL support, multiple bind addrs (#3480)
7 years ago
Frank Schroeder 1acff3533e
agent: move agent/consul/structs to agent/structs
7 years ago
Preetha Appan 7f34dc08a5
Added test case with IPV6 bind address for NS records, rewrote tests to use verify library and other code review feedback
7 years ago
Preetha Appan 76319f751d
Added back glue records in NS response, expanded unit test. Also reused same function used in node lookup for adding A/AAAA records in the extra section of the NS response
7 years ago
Preetha Appan f01f17bda3
Don't add A records for NS requests, because the record being returned already resolves correctly. Also fixed all the unit tests, and ignored hostnames that don't meet valid dns hostname criteria
7 years ago
Preetha Appan 37f75a393e
Use sanitized version of node name of server in NS record, and start with "server" rather than "ns"
7 years ago
Preetha Appan f9db387097
Add NS records and A records for each server. Constructs ns host names using the advertise address of the server.
7 years ago
Frank Schroeder 4a4b91a2db agent: fix data races with registerEndpoint
7 years ago
Frank Schroeder 00f6ba298e dns: fix data race in TestDNS_ServiceLookup_FilterACL
7 years ago
Frank Schroeder 727b6444ad dns: fix data races in DNS compression tests
7 years ago
Frank Schröder 4b51d00458 agent: fix DNS recursor tests (#3190)
8 years ago
Frank Schroeder c4fc581e07 agent: make registerEndpoint private
8 years ago
Frank Schroeder 2b41f2e3a3 agent: make the RPC endpoint overwrite mechanism more transparent
8 years ago
Seth Vargo a8f1e7ebf9 Add EDNS0 support (#3131)
8 years ago
Frank Schroeder 1c75cf1af5 pkg refactor
8 years ago