Home
last modified time | relevance | path

Searched refs:dns (Results 1 – 25 of 42) sorted by relevance

12

/systemd-251/src/resolve/
Dmeson.build6 'resolved-dns-dnssec.c',
7 'resolved-dns-dnssec.h',
8 'resolved-dns-packet.c',
9 'resolved-dns-packet.h',
10 'resolved-dns-rr.c',
11 'resolved-dns-rr.h',
12 'resolved-dns-answer.c',
13 'resolved-dns-answer.h',
14 'resolved-dns-question.c',
15 'resolved-dns-question.h',
[all …]
Dresolved.conf.in19 …: 1.1.1.1#cloudflare-dns.com 1.0.0.1#cloudflare-dns.com 2606:4700:4700::1111#cloudflare-dns.com 26…
20 # Google: 8.8.8.8#dns.google 8.8.4.4#dns.google 2001:4860:4860::8888#dns.google 2001:4860:4860:…
21 # Quad9: 9.9.9.9#dns.quad9.net 149.112.112.112#dns.quad9.net 2620:fe::fe#dns.quad9.net 2620:fe…
Dresolved-resolv-conf.c256 static int write_uplink_resolv_conf_contents(FILE *f, OrderedSet *dns, OrderedSet *domains) { in write_uplink_resolv_conf_contents() argument
275 if (ordered_set_isempty(dns)) in write_uplink_resolv_conf_contents()
281 ORDERED_SET_FOREACH(s, dns) in write_uplink_resolv_conf_contents()
294 static int write_stub_resolv_conf_contents(FILE *f, OrderedSet *dns, OrderedSet *domains) { in write_stub_resolv_conf_contents() argument
328 _cleanup_ordered_set_free_ OrderedSet *dns = NULL, *domains = NULL; in manager_write_resolv_conf() local
339 r = manager_compile_dns_servers(m, &dns); in manager_write_resolv_conf()
353 r = write_uplink_resolv_conf_contents(f_uplink, dns, domains); in manager_write_resolv_conf()
364 r = write_stub_resolv_conf_contents(f_stub, dns, domains); in manager_write_resolv_conf()
Dresolved-link-bus.c255 struct in_addr_full **dns; in bus_link_method_set_dns_servers_internal() local
268 r = bus_message_read_dns_servers(message, error, extended, &dns, &n); in bus_link_method_set_dns_servers_internal()
286 s = in_addr_full_to_string(dns[i]); in bus_link_method_set_dns_servers_internal()
305 …s = dns_server_find(l->dns_servers, dns[i]->family, &dns[i]->address, dns[i]->port, 0, dns[i]->ser… in bus_link_method_set_dns_servers_internal()
309 …server_new(l->manager, NULL, DNS_SERVER_LINK, l, dns[i]->family, &dns[i]->address, dns[i]->port, 0… in bus_link_method_set_dns_servers_internal()
339 in_addr_full_free(dns[i]); in bus_link_method_set_dns_servers_internal()
340 free(dns); in bus_link_method_set_dns_servers_internal()
Dresolved-manager.c1336 int manager_compile_dns_servers(Manager *m, OrderedSet **dns) { in manager_compile_dns_servers() argument
1341 assert(dns); in manager_compile_dns_servers()
1343 r = ordered_set_ensure_allocated(dns, &dns_server_hash_ops); in manager_compile_dns_servers()
1349 r = ordered_set_put(*dns, s); in manager_compile_dns_servers()
1359 r = ordered_set_put(*dns, s); in manager_compile_dns_servers()
1368 if (ordered_set_isempty(*dns)) { in manager_compile_dns_servers()
1370 r = ordered_set_put(*dns, s); in manager_compile_dns_servers()
Dresolvectl.c1421 char **dns; member
1432 char **dns; member
1449 strv_free(p->dns); in link_info_clear()
1458 strv_free(p->dns); in global_info_clear()
1539 … "a(iay)", map_link_dns_servers, offsetof(LinkInfo, dns) }, in status_ifindex()
1591 return status_print_strv_ifindex(ifindex, name, link_info.dns_ex ?: link_info.dns); in status_ifindex()
1698 r = dump_list(table, "DNS Servers:", link_info.dns_ex ?: link_info.dns); in status_ifindex()
1816 … "a(iiay)", map_global_dns_servers, offsetof(GlobalInfo, dns) }, in status_global()
1855 return status_print_strv_global(global_info.dns_ex ?: global_info.dns); in status_global()
1926 r = dump_list(table, "DNS Servers:", global_info.dns_ex ?: global_info.dns); in status_global()
[all …]
/systemd-251/src/network/
Dnetworkd-state-file.c22 static int ordered_set_put_dns_server(OrderedSet **s, int ifindex, struct in_addr_full *dns) { in ordered_set_put_dns_server() argument
27 assert(dns); in ordered_set_put_dns_server()
29 if (dns->ifindex != 0 && dns->ifindex != ifindex) in ordered_set_put_dns_server()
32 p = in_addr_full_to_string(dns); in ordered_set_put_dns_server()
43 static int ordered_set_put_dns_servers(OrderedSet **s, int ifindex, struct in_addr_full **dns, unsi… in ordered_set_put_dns_servers() argument
47 assert(dns || n == 0); in ordered_set_put_dns_servers()
50 r = ordered_set_put_dns_server(s, ifindex, dns[i]); in ordered_set_put_dns_servers()
107 …_cleanup_ordered_set_free_ OrderedSet *dns = NULL, *ntp = NULL, *sip = NULL, *search_domains = NUL… in manager_save() local
150 … r = ordered_set_put_dns_servers(&dns, link->ifindex, link->dns, link->n_dns); in manager_save()
152 … r = ordered_set_put_dns_servers(&dns, link->ifindex, link->network->dns, link->network->n_dns); in manager_save()
[all …]
Dnetworkd-network.c694 in_addr_full_free(network->dns[i]); in network_free()
695 free(network->dns); in network_free()
1013 in_addr_full_free(n->dns[i]); in config_parse_dns()
1014 n->dns = mfree(n->dns); in config_parse_dns()
1020 _cleanup_(in_addr_full_freep) struct in_addr_full *dns = NULL; in config_parse_dns() local
1035 r = in_addr_full_new_from_string(w, &dns); in config_parse_dns()
1042 if (IN_SET(dns->port, 53, 853)) in config_parse_dns()
1043 dns->port = 0; in config_parse_dns()
1045 m = reallocarray(n->dns, n->n_dns + 1, sizeof(struct in_addr_full*)); in config_parse_dns()
1049 m[n->n_dns++] = TAKE_PTR(dns); in config_parse_dns()
[all …]
Dnetworkd-radv.c308 if (network->dns[i]->family != AF_INET6) in network_get_ipv6_dns()
311 addr = &network->dns[i]->address; in network_get_ipv6_dns()
331 _cleanup_free_ struct in6_addr *dns = NULL; in radv_set_dns() local
341 dns = new(struct in6_addr, link->network->n_router_dns); in radv_set_dns()
342 if (!dns) in radv_set_dns()
345 p = dns; in radv_set_dns()
353 n_dns = p - dns; in radv_set_dns()
358 r = network_get_ipv6_dns(link->network, &dns, &n_dns); in radv_set_dns()
365 r = network_get_ipv6_dns(uplink->network, &dns, &n_dns); in radv_set_dns()
375 dns, n_dns); in radv_set_dns()
[all …]
Dnetworkd-link-bus.c124 struct in_addr_full **dns; in bus_link_method_set_dns_servers_internal() local
136 r = bus_message_read_dns_servers(message, error, extended, &dns, &n); in bus_link_method_set_dns_servers_internal()
153 in_addr_full_free(l->dns[i]); in bus_link_method_set_dns_servers_internal()
155 free_and_replace(l->dns, dns); in bus_link_method_set_dns_servers_internal()
167 in_addr_full_free(dns[i]); in bus_link_method_set_dns_servers_internal()
168 free(dns); in bus_link_method_set_dns_servers_internal()
Dnetworkd-json.c551 … r = dns_build_json_one(link, link->dns[i], NETWORK_CONFIG_SOURCE_RUNTIME, NULL, elements + n); in dns_build_json()
564 …r = dns_build_json_one(link, link->network->dns[i], NETWORK_CONFIG_SOURCE_STATIC, NULL, elements +… in dns_build_json()
572 const struct in_addr *dns; in dns_build_json() local
580 n_dns = sd_dhcp_lease_get_dns(link->dhcp_lease, &dns); in dns_build_json()
588 … &(struct in_addr_full) { .family = AF_INET, .address.in = dns[i], }, in dns_build_json()
600 const struct in6_addr *dns; in dns_build_json() local
608 n_dns = sd_dhcp6_lease_get_dns(link->dhcp6_lease, &dns); in dns_build_json()
616 … &(struct in_addr_full) { .family = AF_INET6, .address.in6 = dns[i], }, in dns_build_json()
/systemd-251/src/shared/
Dbus-message-util.c139 struct in_addr_full **dns = NULL; in bus_message_read_dns_servers() local
163 if (!GREEDY_REALLOC(dns, n+1)) { in bus_message_read_dns_servers()
168 r = in_addr_full_new(family, &a, port, 0, server_name, dns + n); in bus_message_read_dns_servers()
175 *ret_dns = TAKE_PTR(dns); in bus_message_read_dns_servers()
181 in_addr_full_free(dns[i]); in bus_message_read_dns_servers()
182 free(dns); in bus_message_read_dns_servers()
/systemd-251/src/network/generator/
Dnetwork-generator.c156 strv_free(network->dns); in network_free()
419 static int network_set_dns(Context *context, const char *ifname, const char *dns) { in network_set_dns() argument
424 r = in_addr_from_string_auto(dns, &family, &a); in network_set_dns()
435 return strv_extend(&network->dns, dns); in network_set_dns()
593 const char *hostname = NULL, *ifname, *dhcp_type, *dns, *p; in parse_cmdline_ip_address() local
675 dns = strndupa_safe(value, p - value); in parse_cmdline_ip_address()
676 r = network_set_dns(context, ifname, dns); in parse_cmdline_ip_address()
1058 r = strv_extend_strv(&network->dns, all->dns, false); in context_merge_networks()
1154 if (!strv_isempty(network->dns)) in network_dump()
1155 STRV_FOREACH(dns, network->dns) in network_dump()
[all …]
Dnetwork-generator.h63 char **dns; member
/systemd-251/
Dmeson_options.txt314 option('default-dns-over-tls', type : 'combo',
326 option('dns-over-tls', type : 'combo', choices : ['auto', 'gnutls', 'openssl', 'true', 'false'],
328 option('dns-servers', type : 'string',
330dns.com 8.8.8.8#dns.google 1.0.0.1#cloudflare-dns.com 8.8.4.4#dns.google 2606:4700:4700::1111#clou…
/systemd-251/shell-completion/bash/
Dsystemd-resolve43 --set-dns --set-domain --set-llmnr --set-mdns --set-dnssec --set-nta'
57 --set-dns|--set-domain|--set-nta)
/systemd-251/src/libsystemd-network/
Dsd-dhcp6-lease.c283 return dhcp6_option_parse_addresses(optval, optlen, &lease->dns, &lease->dns_count); in dhcp6_lease_add_dns()
289 if (!lease->dns) in sd_dhcp6_lease_get_dns()
293 *ret = lease->dns; in sd_dhcp6_lease_get_dns()
658 free(lease->dns); in dhcp6_lease_free()
Ddhcp6-lease-internal.h37 struct in6_addr *dns; member
Dsd-dhcp-lease.c1149 *dns = NULL, in dhcp_lease_load() local
1186 "DNS", &dns, in dhcp_lease_load()
1281 if (dns) { in dhcp_lease_load()
1282 r = deserialize_in_addrs(&lease->servers[SD_DHCP_LEASE_DNS].addr, dns); in dhcp_lease_load()
1284 … log_debug_errno(r, "Failed to deserialize DNS servers %s, ignoring: %m", dns); in dhcp_lease_load()
/systemd-251/test/fuzz/
D.gitattributes4 /fuzz-dns-packet/* binary
/systemd-251/factory/etc/
Dnsswitch.conf8 hosts: mymachines resolve [!UNAVAIL=return] files myhostname dns
/systemd-251/src/systemd/
Dsd-network.h61 int sd_network_get_dns(char ***dns);
Dsd-radv.h64 const struct in6_addr *dns, size_t n_dns);
Dsd-dhcp-server.h75 int sd_dhcp_server_set_dns(sd_dhcp_server *server, const struct in_addr dns[], size_t n);
/systemd-251/tools/
Doss-fuzz.sh101 git clone --depth 1 https://github.com/CZ-NIC/dns-fuzzing "$df"

12