• Home
  • Raw
  • Download

Lines Matching refs:domain

25                             const std::string& domain,  in AddServiceInfoToLabels()  argument
30 std::vector<std::string> domain_labels = absl::StrSplit(domain, '.'); in AddServiceInfoToLabels()
35 const std::string& domain) { in GetPtrDomainName() argument
37 AddServiceInfoToLabels(service, domain, &labels); in GetPtrDomainName()
43 const std::string& domain) { in GetInstanceDomainName() argument
46 AddServiceInfoToLabels(service, domain, &labels); in GetInstanceDomainName()
56 const DomainName& domain) { in CreatePtrRecord() argument
57 PtrRecordRdata data(domain); in CreatePtrRecord()
65 const DomainName& domain) { in CreateSrvRecord() argument
67 SrvRecordRdata data(0, 0, port, domain); in CreateSrvRecord()
68 return MdnsRecord(domain, DnsType::kSRV, DnsClass::kIN, RecordType::kUnique, in CreateSrvRecord()
73 const DomainName& domain) { in CreateARecords() argument
78 records.emplace_back(domain, DnsType::kA, DnsClass::kIN, in CreateARecords()
87 const DomainName& domain) { in CreateAAAARecords() argument
92 records.emplace_back(domain, DnsType::kAAAA, DnsClass::kIN, in CreateAAAARecords()
102 const DomainName& domain) { in CreateTxtRecord() argument
104 return MdnsRecord(domain, DnsType::kTXT, DnsClass::kIN, RecordType::kUnique, in CreateTxtRecord()
162 auto domain = GetPtrDomainName(key.service_id(), key.domain_id()); in GetPtrQueryInfo() local
163 return {std::move(domain), DnsType::kPTR, DnsClass::kANY}; in GetPtrQueryInfo()
170 bool HasValidDnsRecordAddress(const DomainName& domain) { in HasValidDnsRecordAddress() argument
171 return InstanceKey::TryCreate(domain).is_value() && in HasValidDnsRecordAddress()
172 IsInstanceValid(domain.labels()[0]); in HasValidDnsRecordAddress()
180 auto domain = GetInstanceDomainName(InstanceKey(instance)); in GetDnsRecords() local
182 return {CreatePtrRecord(instance, domain), CreateSrvRecord(instance, domain), in GetDnsRecords()
183 CreateTxtRecord(instance, domain)}; in GetDnsRecords()
187 auto domain = GetInstanceDomainName(InstanceKey(endpoint)); in GetDnsRecords() local
192 std::vector<MdnsRecord> v4 = CreateARecords(endpoint, domain); in GetDnsRecords()
193 std::vector<MdnsRecord> v6 = CreateAAAARecords(endpoint, domain); in GetDnsRecords()