View definition

func TrimDomainName

Defined in github.com/miekg/dns/dnsutil/util.go

Description

TrimDomainName trims origin from s if s is a subdomain. This function will never return "", but returns "@" instead (@ represents the apex (bare) domain).

TrimDomainName is referenced in 2 repositories

github.com/miekg/dns github.com/xjdrew/kone