code: func dnsMsgContainsCNAME(msg *dns.Msg) bool {
  	for _, ans := range msg.Answer {
  		if _, ok := ans.(*dns.CNAME); ok {
  			return true
  		}
  	}
  	return false
  }
docs: // dnsMsgContainsCNAME checks for a CNAME answer in msg