Tom Gundersen
6f4dedb250
sd-network: expose DNS/NTP servers as strings
...
This avoids having to distinguish between IPv4 and IPv6, allowing us
to keep their internal orderings. The consumers now has to turn the
strings into addresses.
2014-07-23 23:54:52 +02:00
Tom Gundersen
6073b6f26a
resolved: don't read DHCP leases
...
networkd will expose both statically configured DNS servers and servers
receieved over DHCP in sd_network_get_dns(), so no need to keep
the distinction in resolved.
2014-07-23 23:54:52 +02:00
Tom Gundersen
b0e39c8284
networkd: merge DNS and NTP entries when exporting
...
In the state files, do not distinguish where the various entries came from
(static or DHCP), but include them all in the same list.
2014-07-23 23:54:51 +02:00
Lennart Poettering
934e9b10b4
resolved: most DNS servers can't handle more than one question per packet, hence let's not generate that
2014-07-23 02:00:40 +02:00
Lennart Poettering
7e8e0422ae
resolved: implement negative caching
2014-07-23 02:00:40 +02:00
Lennart Poettering
faa133f3aa
resolved: rework logic so that we can share transactions between queries of different clients
2014-07-23 02:00:40 +02:00
Zbigniew Jędrzejewski-Szmek
901fd81647
resolved: do not use unitialized variable
2014-07-18 21:44:34 -04:00
Lennart Poettering
cbd4560ea2
resolved: various bad memory access fixes to the cache
2014-07-18 21:01:40 +02:00
Lennart Poettering
878cd63db2
resolved: fix bus signatures to follow family as int change
2014-07-18 21:01:07 +02:00
Lennart Poettering
46f08bea4b
in-addr-util: remove family_to_string() API
...
we already have a more complete one with af_to_name(), that is generated
from the header files, no need to duplicate this.
2014-07-18 16:15:12 +02:00
Lennart Poettering
0dd25fb9f0
change type for address family to "int"
...
Let's settle on a single type for all address family values, even if
UNIX is very inconsitent on the precise type otherwise. Given that
socket() is the primary entrypoint for the sockets API, and that uses
"int", and "int" is relatively simple and generic, we settle on "int"
for this.
2014-07-18 16:10:51 +02:00
Lennart Poettering
3c0cf50279
resolved: add more const
2014-07-18 14:01:01 +02:00
Lennart Poettering
1716f6dcf5
resolved: add LLMNR support for looking up names
2014-07-18 12:38:32 +02:00
Thomas Hindoe Paaboel Andersen
962225baa8
resolved: silence warnings
...
No need to write to r here since it will be overwritten as the first
step in parse_fail.
2014-07-17 21:12:39 +02:00
Thomas Hindoe Paaboel Andersen
f12ea7dad0
resolved: remove unused variable
2014-07-17 19:59:47 +02:00
Lennart Poettering
322345fdb9
resolved: add DNS cache
2014-07-17 19:39:50 +02:00
Lennart Poettering
c5ed93163e
resolved: don't trip up when an rtlink message does not include the MTU
2014-07-17 19:39:50 +02:00
Lennart Poettering
39762fdf67
resolved: enforce limit on concurrent outstanding queries
2014-07-17 01:58:14 +02:00
Lennart Poettering
a2ba62c719
sd-network: remove redundant array size parameter from functions that return arrays
...
As long as the number of array entries is relatively small it's nicer to
simply return the number of entries directly, instead of using a size_t*
return parameter for it.
2014-07-17 01:42:26 +02:00
Lennart Poettering
b45d9e86e4
resolved: fix check for mdns names
2014-07-17 01:41:52 +02:00
Lennart Poettering
faec72d5de
resolved: we are never authoritative for localhost
2014-07-17 01:41:52 +02:00
Lennart Poettering
e1c959948c
resolved: properly handle MTU logic
2014-07-17 01:41:52 +02:00
Lennart Poettering
76f468c8ea
dns-domain: enforce maximum DNS domain name length
2014-07-17 01:41:52 +02:00
Lennart Poettering
0014a4ad50
sd-network: fix parameter order for sd_network_monitor_new()
...
Constructors should return the object they created as first parameter,
except when they are generated as a child/member object of some other
object in which case that should be first.
2014-07-17 01:41:52 +02:00
Zbigniew Jędrzejewski-Szmek
36f822c4bd
Let config_parse open file where applicable
...
Special care is needed so that we get an error message if the
file failed to parse, but not when it is missing. To avoid duplicating
the same error check in every caller, add an additional 'warn' boolean
to tell config_parse whether a message should be issued.
This makes things both shorter and more robust wrt. to error reporting.
2014-07-16 18:47:20 -04:00
Kay Sievers
e1bbf3d12f
resolved: do not free() sd_dhcp_lease_get_dns() results
2014-07-16 23:50:45 +02:00
Lennart Poettering
309e9d86f0
resolved: properly pass canonical name information to resolving client
...
Also, hook up nss-resolve to make use of this information
2014-07-16 22:51:50 +02:00
Lennart Poettering
8ba9fd9cee
resolved: add CNAME lookup support
2014-07-16 22:51:50 +02:00
Lennart Poettering
ad86766293
resolved: support for TCP DNS queries
2014-07-16 20:15:47 +02:00
Lennart Poettering
c73ce96b56
dns-packet: allow dynamic resizing of DNS packets
2014-07-16 18:04:14 +02:00
Lennart Poettering
3cb10d3a0b
dns-domain: introduce macros for accessing all DNS header fields
2014-07-16 18:03:46 +02:00
Zbigniew Jędrzejewski-Szmek
4e0296a943
resolve: avoid use of uninitalized variable
2014-07-15 22:47:03 -04:00
Zbigniew Jędrzejewski-Szmek
e9f3d2d508
Constify ConfigTableItem tables
2014-07-15 22:34:40 -04:00
Kay Sievers
18641cb17e
resolved: add legacy dbus service and policy files
2014-07-16 03:41:39 +02:00
Lennart Poettering
4d1cf1e229
resolved: add small NSS module that uses resolved to resolve DNS names
2014-07-16 03:31:30 +02:00
Lennart Poettering
1fa65c593c
dns-domain: never allow labels that are larger than 63 chars
2014-07-16 03:29:20 +02:00
Lennart Poettering
3fe1169fe3
dns-domain: fix generation of reverse IP address lookup name
2014-07-16 03:28:52 +02:00
Lennart Poettering
b9d394ea56
resolve: add distinct bus error code for hosts that exist but lack A or AAAA records
2014-07-16 03:28:18 +02:00
Lennart Poettering
74b2466e14
resolved: add a DNS client stub resolver
...
Let's turn resolved into a something truly useful: a fully asynchronous
DNS stub resolver that subscribes to network changes.
(More to come: caching, LLMNR, mDNS/DNS-SD, DNSSEC, IDN, NSS module)
2014-07-16 00:31:38 +02:00
Lennart Poettering
3b653205cf
shared: split out in_addr related calls from socket-util.[ch] into its private in-addr-util.[ch]
...
These are enough calls for a new file, and they are sufficiently
different from the sockaddr-related calls, hence let's split this out.
2014-07-10 21:15:26 +02:00
Lennart Poettering
096b677388
resolved: properly free network monitor
2014-07-10 20:12:34 +02:00
Lennart Poettering
c92e531c82
resolved: make use of union in_addr_union in resolved, too
2014-07-07 23:11:48 +02:00
Lennart Poettering
b9e7a9d870
resolved: make sure SIGTER/SIGINT actually can be caught and processed
2014-07-07 23:09:02 +02:00
Lennart Poettering
987d561fe2
resolved: let config_parse() open the configuration file for us
2014-07-07 23:03:17 +02:00
Tom Gundersen
682265d5e2
resolved: run as unpriviliged "systemd-resolve" user
...
This service is not yet network facing, but let's prepare nonetheless.
Currently all caps are dropped, but some may need to be kept in the
future.
2014-06-03 10:40:28 +02:00
Tom Gundersen
b686acb27e
resolved: move resolv.conf to resolved's runtime dir
2014-06-02 15:14:32 +02:00
Tom Gundersen
091a364c80
resolved: add daemon to manage resolv.conf
...
Also remove the equivalent functionality from networkd.
2014-05-19 18:14:56 +02:00