Lines Matching defs:soa
189 _cleanup_(dns_resource_record_unrefp) DnsResourceRecord *soa = NULL;
191 soa = dns_resource_record_new_full(DNS_CLASS_IN, DNS_TYPE_SOA, name);
192 if (!soa)
195 soa->ttl = ttl;
197 soa->soa.mname = strdup(name);
198 if (!soa->soa.mname)
201 soa->soa.rname = strappend("root.", name);
202 if (!soa->soa.rname)
205 soa->soa.serial = 1;
206 soa->soa.refresh = 1;
207 soa->soa.retry = 1;
208 soa->soa.expire = 1;
209 soa->soa.minimum = ttl;
211 return dns_answer_add(a, soa, 0, DNS_ANSWER_AUTHENTICATED);
349 DnsResourceRecord *rr, *soa = NULL;
365 if (soa) {
366 r = dns_name_endswith(DNS_RESOURCE_KEY_NAME(rr->key), DNS_RESOURCE_KEY_NAME(soa->key));
373 soa = rr;
378 if (!soa)
382 *ret = soa;