/systemd-251/src/resolve/ |
D | test-dns-packet.c | 94 _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 …]
|
D | resolved-dns-question.c | 216 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()
|
D | resolved-dns-rr.c | 39 …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 …]
|
D | resolved-dns-answer.c | 762 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()
|
D | resolved-dns-rr.h | 128 } 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);
|
D | resolved-dns-query.c | 980 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()
|
D | resolved-dns-question.h | 44 int dns_question_cname_redirect(DnsQuestion *q, const DnsResourceRecord *cname, DnsQuestion **ret);
|
D | resolved-dns-answer.h | 83 int dns_answer_has_dname_for_cname(DnsAnswer *a, DnsResourceRecord *cname);
|
/systemd-251/shell-completion/bash/ |
D | systemd-resolve | 40 --cname=no --search=no --legend=no --flush-caches
|
D | resolvectl | 37 [STANDALONE]='-h --help --version -4 -6 --legend=no --cname=no
|
/systemd-251/shell-completion/zsh/ |
D | _resolvectl | 82 '--cname=no[Do not follow CNAME redirects]' \
|