MCPcopy Index your code
hub / github.com/coder/coder / SetDNS

Method SetDNS

vpn/dns.go:13–18  ·  view source on GitHub ↗
(cfg dns.OSConfig)

Source from the content-addressed store, hash-verified

11}
12
13func (v *dnsManager) SetDNS(cfg dns.OSConfig) error {
14 settings := convertDNSConfig(cfg)
15 return v.tunnel.ApplyNetworkSettings(v.tunnel.ctx, &NetworkSettingsRequest{
16 DnsSettings: settings,
17 })
18}
19
20func (*dnsManager) GetBaseConfig() (dns.OSConfig, error) {
21 // Tailscale calls this function to blend the OS's DNS configuration with

Callers

nothing calls this directly

Calls 2

convertDNSConfigFunction · 0.85
ApplyNetworkSettingsMethod · 0.80

Tested by

no test coverage detected