Searched defs:dns (Results 1 - 11 of 11) sorted by relevance

/systemd/src/libsystemd-network/
H A Ddhcp6-lease-internal.h41 struct in6_addr *dns; member in struct:sd_dhcp6_lease
H A Ddhcp-lease-internal.h66 struct in_addr *dns; member in struct:sd_dhcp_lease
H A Ddhcp-server-internal.h63 struct in_addr *ntp, *dns; member in struct:sd_dhcp_server
H A Dsd-dhcp-lease.c32 #include "dns-domain.h"
117 *addr = lease->dns;
280 free(lease->dns);
559 r = lease_parse_in_addrs(option, len, &lease->dns, &lease->dns_size);
887 *dns = NULL, local
914 "DNS", &dns,
1002 if (dns) {
1003 r = deserialize_in_addrs(&lease->dns, dns);
1005 log_debug_errno(r, "Failed to deserialize DNS servers %s, ignoring: %m", dns);
[all...]
H A Dsd-dhcp-server.c172 free(server->dns);
514 sizeof(struct in_addr) * server->n_dns, server->dns);
1107 int sd_dhcp_server_set_dns(sd_dhcp_server *server, const struct in_addr dns[], unsigned n) { argument
1109 assert_return(dns || n <= 0, -EINVAL);
1112 memcmp(server->dns, dns, sizeof(struct in_addr) * n) == 0)
1116 server->dns = mfree(server->dns);
1121 c = newdup(struct in_addr, dns, n);
1125 free(server->dns);
[all...]
/systemd/src/resolve/
H A Dresolved-resolv-conf.c23 #include "dns-domain.h"
193 static int write_resolv_conf_contents(FILE *f, OrderedSet *dns, OrderedSet *domains) { argument
202 if (ordered_set_isempty(dns))
208 ORDERED_SET_FOREACH(s, dns, i)
227 _cleanup_ordered_set_free_ OrderedSet *dns = NULL, *domains = NULL; local
238 r = manager_compile_dns_servers(m, &dns);
252 r = write_resolv_conf_contents(f, dns, domains);
H A Dresolved-link-bus.c161 _cleanup_free_ struct in_addr_data *dns = NULL; local
204 if (!GREEDY_REALLOC(dns, allocated, n+1))
207 dns[n].family = family;
208 memcpy(&dns[n].address, d, sz);
221 s = dns_server_find(l->dns_servers, dns[i].family, &dns[i].address);
225 r = dns_server_new(l->manager, NULL, DNS_SERVER_LINK, l, dns[i].family, &dns[i].address);
H A Dresolved-manager.c26 #include "dns-domain.h"
1100 int manager_compile_dns_servers(Manager *m, OrderedSet **dns) { argument
1107 assert(dns);
1109 r = ordered_set_ensure_allocated(dns, &dns_server_hash_ops);
1115 r = ordered_set_put(*dns, s);
1125 r = ordered_set_put(*dns, s);
1134 if (ordered_set_isempty(*dns)) {
1136 r = ordered_set_put(*dns, s);
/systemd/src/network/
H A Dnetworkctl.c506 _cleanup_strv_free_ char **dns = NULL, **ntp = NULL, **search_domains = NULL, **route_domains = NULL; local
578 (void) sd_network_link_get_dns(ifindex, &dns);
647 dump_list(" DNS: ", dns);
679 _cleanup_strv_free_ char **dns = NULL, **ntp = NULL, **search_domains = NULL, **route_domains; local
692 sd_network_get_dns(&dns);
693 dump_list(" DNS: ", dns);
H A Dnetworkd-manager.c30 #include "dns-domain.h"
830 _cleanup_ordered_set_free_free_ OrderedSet *dns = NULL, *ntp = NULL, *search_domains = NULL, *route_domains = NULL; local
843 dns = ordered_set_new(&string_hash_ops);
844 if (!dns)
870 r = ordered_set_put_strdupv(dns, link->network->dns);
895 r = ordered_set_put_in_addrv(dns, addresses, r);
945 print_string_set(f, "DNS=", dns);
H A Dnetworkd-network.h150 char **search_domains, **route_domains, **dns, **ntp, **bind_carrier; member in struct:Network

Completed in 37 milliseconds