Searched refs:domain (Results 1 - 15 of 15) sorted by relevance

/systemd/src/resolve/
H A Dresolved-conf.c79 int manager_add_search_domain_by_string(Manager *m, const char *domain) { argument
85 assert(domain);
87 route_only = *domain == '~';
89 domain++;
91 if (dns_name_is_root(domain) || streq(domain, "*")) {
93 domain = ".";
96 r = dns_search_domain_find(m->search_domains, domain, &d);
102 r = dns_search_domain_new(m, &d, DNS_SEARCH_DOMAIN_SYSTEM, NULL, domain);
128 log_warning_errno(r, "Failed to add search domain '
[all...]
H A Dresolved-resolv-conf.c23 #include "dns-domain.h"
102 a = first_word(l, "domain");
103 if (!a) /* We treat "domain" lines, and "search" lines as equivalent, and add both to our list. */
108 log_warning_errno(r, "Failed to parse search domain string '%s', ignoring.", a);
167 const char *domain,
172 assert(domain);
177 *length + strlen(domain) > 256) {
186 (*length) += strlen(domain);
190 fputs(domain, f);
214 char *domain; local
166 write_resolv_conf_search( const char *domain, FILE *f, unsigned *count, unsigned *length) argument
[all...]
H A Dresolved-conf.h26 int manager_add_search_domain_by_string(Manager *m, const char *domain);
H A Dresolved-dns-scope.c24 #include "dns-domain.h"
405 DnsScopeMatch dns_scope_good_domain(DnsScope *s, int ifindex, uint64_t flags, const char *domain) { argument
409 assert(domain);
411 /* Checks if the specified domain is something to look up on
424 if (is_localhost(domain) ||
425 dns_name_endswith(domain, "127.in-addr.arpa") > 0 ||
426 dns_name_equal(domain, "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa") > 0)
430 if (dns_name_endswith(domain, "0.in-addr.arpa") > 0 ||
431 dns_name_equal(domain, "255.255.255.255.in-addr.arpa") > 0 ||
432 dns_name_equal(domain, "0.
[all...]
H A Dresolved-dns-trust-anchor.c25 #include "dns-domain.h"
46 /* Returns true if there's an entry for the specified domain
66 * nor a DNSKEY defined for the root domain. That way users
67 * have an easy way to override the root domain DS/DNSKEY
104 /* RFC 6761 says that .test is a special domain for
130 /* RFC 6762 reserves the .local domain for Multicast
133 * DNS anyway, except when a configured search domain
192 _cleanup_free_ char *domain = NULL, *class = NULL, *type = NULL; local
201 r = extract_first_word(&p, &domain, NULL, EXTRACT_QUOTES);
203 return log_warning_errno(r, "Unable to parse domain i
358 _cleanup_free_ char *domain = NULL; local
[all...]
H A Dresolved-dns-question.c21 #include "dns-domain.h"
390 const char *domain,
404 * 1. Only a domain is specified, in which case we assume a properly encoded SRV RR name, including service
408 * 2. Both service type and a domain specified, in which case a normal SRV RR is assumed, without a DNS-SD
409 * style prefix. In this case we'll IDNA convert the domain, if that's requested.
411 * 3. All three of service name, type and domain are specified, in which case a DNS-SD service is put
412 * together. The service name is never IDNA converted, and the domain is if requested.
414 * It's not supported to specify a service name without a type, or no domain name.
417 if (!domain)
422 r = dns_name_apply_idna(domain,
386 dns_question_new_service( DnsQuestion **ret, const char *service, const char *type, const char *domain, bool with_txt, bool convert_idna) argument
[all...]
H A Dresolved-dns-question.h41 int dns_question_new_service(DnsQuestion **ret, const char *service, const char *type, const char *domain, bool with_txt, bool convert_idna);
H A Dresolved-dns-scope.h87 DnsScopeMatch dns_scope_good_domain(DnsScope *s, int ifindex, uint64_t flags, const char *domain);
H A Dresolve-tool.c565 static int resolve_service(sd_bus *bus, const char *name, const char *type, const char *domain) { argument
578 assert(domain);
589 log_debug("Resolving service \"%s\" of type %s in %s (family %s, interface %s).", name, type, domain, af_to_name(arg_family) ?: "*", isempty(ifname) ? "*" : ifname);
591 log_debug("Resolving service type %s of %s (family %s, interface %s).", type, domain, af_to_name(arg_family) ?: "*", isempty(ifname) ? "*" : ifname);
593 log_debug("Resolving service type %s (family %s, interface %s).", domain, af_to_name(arg_family) ?: "*", isempty(ifname) ? "*" : ifname);
605 r = sd_bus_message_append(req, "isssit", arg_ifindex, name, type, domain, arg_family, arg_flags);
624 strlen(domain) + 2;
641 (int) strlen(domain), c == 0 ? domain : "",
749 !streq_ptr(domain, canonical_domai
[all...]
H A Dresolved-bus.c23 #include "dns-domain.h"
755 _cleanup_free_ char *name = NULL, *type = NULL, *domain = NULL; local
872 r = dns_service_split(DNS_RESOURCE_KEY_NAME(canonical->key), &name, &type, &domain);
879 name, type, domain,
1020 * the root domain as host name, then the
1022 * domain. Report this as a recognizable
1049 const char *name, *type, *domain; local
1062 r = sd_bus_message_read(message, "isssit", &ifindex, &name, &type, &domain, &family, &flags);
1079 r = dns_name_is_valid(domain);
1083 return sd_bus_error_setf(error, SD_BUS_ERROR_INVALID_ARGS, "Invalid domain '
[all...]
H A Dresolved-dns-dnssec.c25 #include "dns-domain.h"
115 /* Not even a single label: this is the root domain name */
1326 static int nsec3_hashed_domain_make(DnsResourceRecord *nsec3, const char *domain, const char *zone, char **ret) { argument
1331 assert(domain);
1335 hashed_size = dnssec_nsec3_hash(nsec3, domain, hashed);
1345 * is no wildcard domain as a direct descendant of the closest enclosure, or find an NSEC3 record that
1346 * matches the wildcard domain.
1430 * but let's remember this domain name, it might be
1479 /* Ensure this is not a DNAME domain, see RFC5155, section 8.3. */
1483 /* Ensure that this data is from the delegated domain
[all...]
/systemd/src/shared/
H A Ddns-domain.h94 int dns_name_to_wire_format(const char *domain, uint8_t *buffer, size_t len, bool canonical);
99 int dns_service_join(const char *name, const char *type, const char *domain, char **ret);
100 int dns_service_split(const char *joined, char **name, char **type, char **domain);
H A Ddns-domain.c32 #include "dns-domain.h"
163 /* Skip current terminal character (and accept domain names ending it ".") */
470 /* Nothing appended? If so, generate at least a single dot, to indicate the DNS root domain */
837 /* There are exactly two ways to encode the root domain name:
855 /* Encode a domain name according to RFC 1035 Section 3.1, without compression */
856 int dns_name_to_wire_format(const char *domain, uint8_t *buffer, size_t len, bool canonical) { argument
860 assert(domain);
875 * of the domain name, which we rely on here to encode
877 r = dns_label_unescape(&domain, (char *) out, len);
985 int dns_service_join(const char *name, const char *type, const char *domain, cha argument
1027 _cleanup_free_ char *name = NULL, *type = NULL, *domain = NULL; local
[all...]
/systemd/src/udev/
H A Dudev-builtin-net_id.c41 * [P<domain>]p<bus>s<slot>[f<function>][d<dev_port>]
43 * [P<domain>]p<bus>s<slot>[f<function>][u<port>][..][c<config>][i<interface>]
49 * When using PCI geography, The PCI domain is only prepended when it is not 0.
202 unsigned domain, bus, slot, func, dev_port = 0; local
212 if (sscanf(udev_device_get_sysname(names->pcidev), "%x:%x:%x.%u", &domain, &bus, &slot, &func) != 4)
223 if (domain > 0)
224 l = strpcpyf(&s, l, "P%u", domain);
273 if (domain > 0)
274 l = strpcpyf(&s, l, "P%d", domain);
433 * bus_id 0.0.0600 -> 600. This is similar to e.g. how PCI domain i
[all...]
/systemd/src/network/
H A Dnetworkd-network.c26 #include "dns-domain.h"
503 const char *domain; local
508 log_syntax(unit, LOG_ERR, filename, line, r, "Failed to extract search or route domain, ignoring: %s", rvalue);
515 domain = is_route ? w + 1 : w;
517 if (dns_name_is_root(domain) || streq(domain, "*")) {
518 /* If the root domain appears as is, or the special token "*" is found, we'll consider this as
519 * routing domain, unconditionally. */
521 domain = "."; /* make sure we don't allow empty strings, thus write the root domain a
[all...]

Completed in 2804 milliseconds