示例#1
0
文件: DNS.cs 项目: CadmiPop/ClientDNS
        private bool ItContains(string hostname)
        {
            var itContains = nameIp.FirstOrDefault(n => n.Key == hostname).Value;

            if (itContains != null)
            {
                byte[] answerHeader = new Answer().GetBytesHeader();
                answerBytes = answerHeader.Concat(itContains).ToArray();
                return(true);
            }
            return(false);
        }