Lines Matching defs:domain
26 #include "dns-domain.h"
503 const char *domain;
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 as "." */
524 r = dns_name_normalize(domain, &normalized);
526 log_syntax(unit, LOG_ERR, filename, line, r, "'%s' is not a valid domain name, ignoring.", domain);
530 domain = normalized;
532 if (is_localhost(domain)) {
533 log_syntax(unit, LOG_ERR, filename, line, 0, "'localhost' domain names may not be configure as search or route domains, ignoring assignment: %s", domain);
539 r = strv_extend(&n->route_domains, domain);
544 r = strv_extend(&n->search_domains, domain);
985 log_syntax(unit, LOG_ERR, filename, line, r, "Failed to extract negative trust anchor domain, ignoring: %s", rvalue);
993 log_syntax(unit, LOG_ERR, filename, line, r, "%s is not a valid domain name, ignoring.", w);