Commit Graph

157 Commits (7013d15a23732179d18ec5d17336e16b26fab5d4)

Author SHA1 Message Date
Matt Keeler 8837907de4
Make the Agent Cache more Context aware (#8092)
5 years ago
Kyle Havlovitz e9e8c0e730
Ingress Gateways for TCP services (#7509)
5 years ago
Pierre Souchay c9e01ed0a3 Pre-allocations of DNS meta to avoid several allocations
5 years ago
Daniel Nephin 326453eaa1 dns: Remove a few unused params
5 years ago
Matt Keeler 861f754dad
Properly detect no alt domain set (#7323)
5 years ago
Wim 3a2c865ff6
Fix high cpu usage with IPv6 recursor address. Closes #6120 (#6128)
5 years ago
Chris Piraino 401221de58
Allow users to configure either unstructured or JSON logging (#7130)
5 years ago
Aestek ba8fd8296f Add support for dual stack IPv4/IPv6 network (#6640)
5 years ago
Wim 4f5d5020b8 dns: fix memoryleak by upgrading outdated miekg/dns (#6748)
5 years ago
Matt Keeler 5934f803bf
Sync of OSS changes to support namespaces (#6909)
5 years ago
Nicolas Benoit 0e9a2e5bd0 Fix dns service SRV lookup when service address is a fqdn
5 years ago
hashicorp-ci 43bda6fb76 Merge Consul OSS branch 'master' at commit e91f73f592
5 years ago
Akshay Ganeshen 98a35fbe69 dns: support alt domains for dns resolution (#5940)
5 years ago
Matt Keeler f3d9b999ee
Add tagged addresses for services (#5965)
6 years ago
Pierre Souchay 4a4c63bda0 Ensure Consul is IPv6 compliant (#5468)
6 years ago
Aestek f669bb7b0f Add support for DNS config hot-reload (#4875)
6 years ago
R.B. Boyer f4a3b9d518
fix typos reported by golangci-lint:misspell (#5434)
6 years ago
Aestek 02f991843f Fix race condition in DNS when using cache (#5398)
6 years ago
Aestek f1cdfbe40e Allow DNS interface to use agent cache (#5300)
6 years ago
Matt Keeler 1736e24fb3
Don't generate TXT records just to discard them (#5272)
6 years ago
Pierre Souchay ae7f88f995 Avoid to have infinite recursion in DNS lookups when resolving CNAMEs (#4918)
6 years ago
Paul Banks b29bc906ee
bugfix: use ServiceTags to generate cache key hash (#4987)
6 years ago
Pierre Souchay fab55bee2b dns: implements prefix lookups for DNS TTL (#4605)
6 years ago
Pierre Souchay 251156eb68 Added SOA configuration for DNS settings. (#4714)
6 years ago
Matt Keeler d3ee66eed4
Add ECS option to EDNS responses where appropriate (#4647)
6 years ago
Pierre Souchay eddcf228ea Implementation of Weights Data structures (#4468)
6 years ago
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 e3783a75e7 Refactor to make this much less confusing
6 years ago
Matt Keeler 554035974e Add a bunch of comments about preventing multi-cname
6 years ago
Matt Keeler 22c2be5bf1 Fix some edge cases and add some tests.
6 years ago
Matt Keeler 9a8500412b Only allow 1 CNAME when querying for a service.
6 years ago
mkeeler 6813a99081 Merge remote-tracking branch 'connect/f-connect'
7 years ago
Kyle Havlovitz 050da22473 connect/ca: undo the interface changes and use sign-self-issued in Vault
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 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
Pierre Souchay fa37f262eb Fixed comments for max DNS records returned as requested by @mkeeler
7 years ago
Wim d10e6d0292 Do reverse service lookup only if address doesn't match node
7 years ago
Wim 5c04864b28 Add support for reverse lookup of services
7 years ago
Pierre Souchay 486417a0fc Ensure to never send messages more than 64k
7 years ago
Pierre Souchay cfa5986df7 Fixed unit tests and updated limits
7 years ago
Pierre Souchay 6e80b6b127 Re-Enable compression while computing Len(), so we can send more answers
7 years ago
Kyle Havlovitz ba3971d2c1
Remove deprecated metric names
7 years ago
Pierre Souchay 076ecf9712 Removed unecessary copy of Extra and index
7 years ago
Pierre Souchay 728c5308df Fixed sync of Extra in binarySearch
7 years ago
Pierre Souchay fadfb95e07 Added Unit tests + fixed boudary limit
7 years ago
Pierre Souchay c838376dfa Added comment for function dnsBinaryTruncate
7 years ago
Pierre Souchay 94c0bf978a Perform a binary search to find optimal size of DNS responses
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 cec8d5145b GH-3798: A few more PR updates
7 years ago
Matt Keeler d065d3a6db GH-3798: Updates for PR
7 years ago
Matt Keeler 45a537def9 GH-3798: Add near=_ip support for prepared queries
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
Matt Keeler 3facce6bfa GH-3854: Warn when node name isnt a valid DNS label
7 years ago
Pierre Souchay 93fa1f6f49 Optimize size for SRV records, should improve performance a bit
7 years ago
Pierre Souchay ce3f47a75d Performance optimization for services having more than 2k records
7 years ago
Pierre Souchay 7d59249d96 Avoid issue with compression of DNS messages causing overflow
7 years ago
Pierre Souchay b77fd5ce9d 64000 max limit to DNS messages since there is overhead
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
Andrei Burd b608091014 adding human readability for dns requests debug log (#3751)
7 years ago
Veselkov Konstantin 5f38e1148a fix refactoring
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
Kyle Havlovitz c728564994
Update metric names and add a legacy config flag
7 years ago
Patrick Sodré 7501331d13
Implement encodeKVasRFC1464 function
7 years ago
Patrick Sodré 865f087ec9
Turn encodeKVasRFC1464 into a plain function
7 years ago
Patrick Sodré d5e3b9d843
Refactor formatTxtRecords as encodeKVasRFC1464
7 years ago
Patrick Sodré 655c89ee10
Fix editorial suggestions
7 years ago
Patrick Sodré afb0c92334
Remove redundant check of Node.Meta size
7 years ago
Patrick Sodré 53e812e759
Return Node.Meta info using the DNS interface
7 years ago
Frank Schröder 12216583a1 New config parser, HCL support, multiple bind addrs (#3480)
7 years ago
Kyle Havlovitz baa501e0c5
Fill in the segment in the QuerySource for prepared query lookups
7 years ago
Frank Schroeder bf96857b17 dns: replace nameserver lookup with consistent rpc call
7 years ago
Frank Schroeder 4052c6d2d2 dns: split node lookup from request handling
7 years ago
Frank Schroeder d4e3d4344a dns: refactor label by unrolling loop
7 years ago
Frank Schroeder 70be1ab635 dns: move ttl closer to usage
7 years ago
Frank Schroeder 1acff3533e
agent: move agent/consul/structs to agent/structs
7 years ago
James Phillips 7442039c2d
Fixes a vet error.
7 years ago
Kyle Havlovitz cf02e3bc22 Merge pull request #3369 from hashicorp/metrics-enhancements
7 years ago
Frank Schroeder 9fa237ddb6
dns: minor cleanups
7 years ago
Kyle Havlovitz d5634fe2a8
Add support for labels/filters from go-metrics
7 years ago
Preetha Appan 72ae8c8f33 Go back to using <nodename>.node.dc.consul as the name of the ns record being returned.
7 years ago
Frank Schroeder 8a9653bdf8
dns: keep NS names in consul domain
7 years ago
Frank Schroeder f17bf78bb1
dns: postmaster -> hostmaster
7 years ago
Frank Schroeder 60608b455d
dns: we do not support zone transfers
7 years ago
Frank Schroeder 76b2538915
dns: drop CNAME for primary name server
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
Frank Schroeder 7ea11c2f45
dns: provide correct SOA and NS responses
7 years ago
Preetha Appan 824fc4ee20
Unify regex used to identify invalid dns characters
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 794d1afe44
Removed a copy pasted irrelevant comment, and other code review feedback
7 years ago