Home
last modified time | relevance | path

Searched refs:cname (Results 1 – 11 of 11) sorted by relevance

/systemd-251/src/resolve/
Dtest-dns-packet.c94 _cleanup_(dns_resource_record_unrefp) DnsResourceRecord *cname = NULL, *dname = NULL; in test_dns_resource_record_get_cname_target()
97 … assert_se(cname = dns_resource_record_new_full(DNS_CLASS_IN, DNS_TYPE_CNAME, "quux.foobar")); in test_dns_resource_record_get_cname_target()
98 assert_se(cname->cname.name = strdup("wuff.wuff")); in test_dns_resource_record_get_cname_target()
100 …_cname_target(&DNS_RESOURCE_KEY_CONST(DNS_CLASS_IN, DNS_TYPE_A, "waldo"), cname, &target) == -EUNA… in test_dns_resource_record_get_cname_target()
101 …cname_target(&DNS_RESOURCE_KEY_CONST(DNS_CLASS_IN, DNS_TYPE_A, "foobar"), cname, &target) == -EUNA… in test_dns_resource_record_get_cname_target()
102 …t_cname_target(&DNS_RESOURCE_KEY_CONST(DNS_CLASS_IN, DNS_TYPE_A, "quux"), cname, &target) == -EUNA… in test_dns_resource_record_get_cname_target()
103 …d_get_cname_target(&DNS_RESOURCE_KEY_CONST(DNS_CLASS_IN, DNS_TYPE_A, ""), cname, &target) == -EUNA… in test_dns_resource_record_get_cname_target()
104 …_get_cname_target(&DNS_RESOURCE_KEY_CONST(DNS_CLASS_IN, DNS_TYPE_A, "."), cname, &target) == -EUNA… in test_dns_resource_record_get_cname_target()
105 …et(&DNS_RESOURCE_KEY_CONST(DNS_CLASS_IN, DNS_TYPE_A, "nope.quux.foobar"), cname, &target) == -EUNA… in test_dns_resource_record_get_cname_target()
106 …ame_target(&DNS_RESOURCE_KEY_CONST(DNS_CLASS_IN, DNS_TYPE_A, "quux.foobar"), cname, &target) == 0); in test_dns_resource_record_get_cname_target()
[all …]
Dresolved-dns-question.c216 int dns_question_cname_redirect(DnsQuestion *q, const DnsResourceRecord *cname, DnsQuestion **ret) { in dns_question_cname_redirect() argument
222 assert(cname); in dns_question_cname_redirect()
224 assert(IN_SET(cname->key->type, DNS_TYPE_CNAME, DNS_TYPE_DNAME)); in dns_question_cname_redirect()
235 if (cname->key->type == DNS_TYPE_CNAME) in dns_question_cname_redirect()
236 d = cname->cname.name; in dns_question_cname_redirect()
238 …me_change_suffix(dns_resource_key_name(key), dns_resource_key_name(cname->key), cname->dname.name,… in dns_question_cname_redirect()
271 k = dns_resource_key_new_redirect(key, cname); in dns_question_cname_redirect()
Dresolved-dns-rr.c39 …urceKey* dns_resource_key_new_redirect(const DnsResourceKey *key, const DnsResourceRecord *cname) { in dns_resource_key_new_redirect() argument
43 assert(cname); in dns_resource_key_new_redirect()
45 assert(IN_SET(cname->key->type, DNS_TYPE_CNAME, DNS_TYPE_DNAME)); in dns_resource_key_new_redirect()
47 if (cname->key->type == DNS_TYPE_CNAME) in dns_resource_key_new_redirect()
48 return dns_resource_key_new(key->class, key->type, cname->cname.name); in dns_resource_key_new_redirect()
53 …me_change_suffix(dns_resource_key_name(key), dns_resource_key_name(cname->key), cname->dname.name,… in dns_resource_key_new_redirect()
239 int dns_resource_key_match_cname_or_dname(const DnsResourceKey *key, const DnsResourceKey *cname, c… in dns_resource_key_match_cname_or_dname() argument
243 assert(cname); in dns_resource_key_match_cname_or_dname()
245 if (cname->class != key->class && key->class != DNS_CLASS_ANY) in dns_resource_key_match_cname_or_dname()
251 if (cname->type == DNS_TYPE_CNAME) in dns_resource_key_match_cname_or_dname()
[all …]
Dresolved-dns-answer.c762 int dns_answer_has_dname_for_cname(DnsAnswer *a, DnsResourceRecord *cname) { in dns_answer_has_dname_for_cname() argument
766 assert(cname); in dns_answer_has_dname_for_cname()
771 if (cname->key->type != DNS_TYPE_CNAME) in dns_answer_has_dname_for_cname()
779 if (rr->key->class != cname->key->class) in dns_answer_has_dname_for_cname()
782 … r = dns_name_change_suffix(cname->cname.name, rr->dname.name, dns_resource_key_name(rr->key), &n); in dns_answer_has_dname_for_cname()
788 r = dns_name_equal(n, dns_resource_key_name(cname->key)); in dns_answer_has_dname_for_cname()
Dresolved-dns-rr.h128 } ptr, ns, cname, dname; member
290 …ourceKey* dns_resource_key_new_redirect(const DnsResourceKey *key, const DnsResourceRecord *cname);
309 int dns_resource_key_match_cname_or_dname(const DnsResourceKey *key, const DnsResourceKey *cname, c…
360 int dns_resource_record_get_cname_target(DnsResourceKey *key, DnsResourceRecord *cname, char **ret);
Dresolved-dns-query.c980 static int dns_query_cname_redirect(DnsQuery *q, const DnsResourceRecord *cname) { in dns_query_cname_redirect() argument
990 r = dns_question_cname_redirect(q->question_idna, cname, &nq_idna); in dns_query_cname_redirect()
1004 k = dns_question_cname_redirect(q->question_utf8, cname, &nq_utf8); in dns_query_cname_redirect()
1040 _cleanup_(dns_resource_record_unrefp) DnsResourceRecord *cname = NULL; in dns_query_process_cname_one()
1111 if (r > 0 && !cname) in dns_query_process_cname_one()
1112 cname = dns_resource_record_ref(rr); in dns_query_process_cname_one()
1115 if (!cname) in dns_query_process_cname_one()
1129 r = dns_query_cname_redirect(q, cname); in dns_query_process_cname_one()
Dresolved-dns-question.h44 int dns_question_cname_redirect(DnsQuestion *q, const DnsResourceRecord *cname, DnsQuestion **ret);
Dresolved-dns-answer.h83 int dns_answer_has_dname_for_cname(DnsAnswer *a, DnsResourceRecord *cname);
/systemd-251/shell-completion/bash/
Dsystemd-resolve40 --cname=no --search=no --legend=no --flush-caches
Dresolvectl37 [STANDALONE]='-h --help --version -4 -6 --legend=no --cname=no
/systemd-251/shell-completion/zsh/
D_resolvectl82 '--cname=no[Do not follow CNAME redirects]' \