MCPcopy Index your code
hub / github.com/tailscale/tailscale / MagicDNSSuffix

Method MagicDNSSuffix

types/netmap/netmap.go:267–269  ·  view source on GitHub ↗

MagicDNSSuffix returns the domain's MagicDNS suffix (even if MagicDNS isn't necessarily in use). It will neither start nor end with a period.

()

Source from the content-addressed store, hash-verified

265//
266// It will neither start nor end with a period.
267func (nm *NetworkMap) MagicDNSSuffix() string {
268 return MagicDNSSuffixOfNodeName(nm.SelfName())
269}
270
271// SelfName returns nm.SelfNode.Name, or the empty string
272// if nm is nil or nm.SelfNode is invalid.

Callers 7

dnsMapFromNetworkMapFunction · 0.80
updateStatusLockedMethod · 0.80
magicDNSRootDomainsFunction · 0.80
resolveExitNodeLockedMethod · 0.80
webServerConfigMethod · 0.80
NetworkProfileMethod · 0.80

Calls 2

SelfNameMethod · 0.95
MagicDNSSuffixOfNodeNameFunction · 0.85

Tested by

no test coverage detected