You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DNS runs primarily on UDP. Support TCP is low-hanging fruit. Roughly it is just a matter of changing the DNS server request settings.
TCP support has another - for contributor very important reason. If I'm not in an environment that supports UDP (e.g: colima) and I need to start debugging k8gb (in my case directly from my IDE), I have to make temporary changes in the dns.go file. Would be nice keep settings in ENV_VARS only.
Instructions
Introduce a new config variable e.g.: EDGE_DNS_PORTEDGE_DNS_PROTOCOL
keep UDP as default protocol
cover by unit tests
Fix the implementation in the utils package, e.g.:
// something like this (localhost:1053 is defined in envvars as well):// msg, err = dns.Exchange(m, ns.String())client:= dns.Client{Net: "tcp"}
msg, _, err=client.Exchange(m, "localhost:1053")
The text was updated successfully, but these errors were encountered:
DNS runs primarily on
UDP
. SupportTCP
is low-hanging fruit. Roughly it is just a matter of changing the DNS server request settings.TCP
support has another - for contributor very important reason. If I'm not in an environment that supportsUDP
(e.g: colima) and I need to start debugging k8gb (in my case directly from my IDE), I have to make temporary changes in thedns.go
file. Would be nice keep settings in ENV_VARS only.Instructions
Introduce a new config variable e.g.:
EDGE_DNS_PORT
EDGE_DNS_PROTOCOL
UDP
as default protocolFix the implementation in the
utils
package, e.g.:The text was updated successfully, but these errors were encountered: