Zbigniew Jędrzejewski-Szmek
ad161cd6bb
Merge pull request #16951 from yuwata/resolve-follow-ups-for-extra-dns-stub-listener
...
resolve: follow-ups for extra DNS stub listener
2020-09-05 15:55:22 +02:00
Yu Watanabe
89f7435d0c
resolve: use correct fd for UDP stub listner
2020-09-04 23:54:35 +09:00
Yu Watanabe
d1fb8cdae2
resolve: do not check sender and destination for packet received by extra DNS stub listner
2020-09-04 23:54:35 +09:00
Yu Watanabe
7216a3b5dc
resolve: use sd_event_source_set_io_fd_own() for stub listners
2020-09-04 23:54:35 +09:00
Yu Watanabe
bf22f231cf
resolve: introduce dns_stub_listener_extra_free() and set it as a key destructor
2020-09-04 23:54:35 +09:00
Yu Watanabe
1c17bcb3ad
resolve: adjust error messages
2020-09-04 23:54:35 +09:00
Yu Watanabe
af8b138422
resolve: do not set IPv4 specific options on IPv6 socket
2020-09-04 23:54:30 +09:00
Yu Watanabe
d40f00d798
resolve: do not set IP_TTL for extra DNS stub listeners
2020-09-04 23:53:22 +09:00
Yu Watanabe
ca8b62b522
resolve: use in_addr_union to store addresses for extra dns stub listeners
2020-09-04 20:05:58 +09:00
Yu Watanabe
b4b7ea1b32
resolve: fix indentation
2020-09-04 20:05:58 +09:00
Yu Watanabe
4650582657
resolve: stop extra stub listners before freeing information about them
2020-09-04 20:05:58 +09:00
Yu Watanabe
7314b39746
resolve: set DNS_STUB_LISTENER_YES if no protocol is specified in DNSStubListenExtra=
2020-09-04 20:05:58 +09:00
Yu Watanabe
dce65cd40f
resolve: Manager::dns_stub_listener_mode is not relevant to extra stub listeners
2020-09-04 20:05:58 +09:00
Yu Watanabe
88d2cb7c0e
resolve: make DnsStubListenerMode bitfield
2020-09-04 20:05:58 +09:00
Yu Watanabe
8ae07803a0
resolve: rename dns_stub_extra_event_source -> event_source
...
As the name is too redundant.
2020-09-04 20:05:58 +09:00
Yu Watanabe
bde4bc9bd2
resolvectl: add 'log-level' to help message
...
Follow-up for df9578498f
.
2020-09-04 16:58:36 +09:00
Lennart Poettering
5b49641015
resolved: ttl/hopcount sockopt is not a boolean
...
These are integer values, hence specify them as integers, not as
booleans.
2020-09-04 15:23:12 +09:00
Zbigniew Jędrzejewski-Szmek
908dbc70d6
Merge pull request #16044 from ssahani/resolved-interface
...
systemd-resolved: allow configurable bind address
2020-09-03 19:06:05 +02:00
Susant Sahani
1f05101fb6
resolve: allow configurable bind address
2020-09-03 08:27:41 +00:00
Lennart Poettering
a75cb4e20a
resolved: remove superfluous ;;
2020-08-28 22:59:26 +02:00
Lennart Poettering
95d2155aeb
tree-wide: no need to negate argument to ERROR_IS_XYZ()
...
These macros call abs() internally, hence let's simplify invocations.
2020-08-28 22:58:58 +02:00
Lennart Poettering
fd8a301703
resolved: make sure we initialize t->answer_errno before completing the transaction
...
We must have the error number around when completing the transaction.
Let's hence make sure we always initialize it *first* (we accidentally
did it once after).
Fixes : #11626
2020-08-28 22:44:57 +02:00
Lennart Poettering
9581bb8424
resolved: add minimal varlink api for resolving hostnames/addresses
...
This allows us to later port nss-resolve to use Varlink rather than
D-Bus for resolution. This has the benefit that nss-resolve based
resoluton works even without D-Bus being up. And it's faster too.
2020-08-26 16:48:06 +02:00
Lennart Poettering
c17b5ce739
resolved: minor clean-ups for resolved-bus.c
2020-08-26 16:48:02 +02:00
Lennart Poettering
65a01e8242
resolved: move query bus tracking to resolved-bus.c
...
It's strictly bus-specific, hence let's move this to resolved-bus.c like
the rest of the bus specific logic.
This is also in preparation for adding an alternative varlink transport,
which needs similar functionality, but varlink instead of bus-specific.
2020-08-26 16:47:57 +02:00
Lennart Poettering
c9de4e0f5b
resolved: rename request → bus_request
...
Let's prepare for adding a new varlink interface, and thus rename the
"request" field to "bus_request", so that we can later add a
varlink_request field too.
2020-08-26 16:47:53 +02:00
Lennart Poettering
d4f72f0d21
resolved: drop suppress_unroutable_family field
...
It's unused since 90bdc8be66
.
2020-08-26 16:47:49 +02:00
Dimitri John Ledkov
1c7466aa2e
resolve: lift limits on search domains count or length
...
glibc 2.26 lifted restrictions on search domains count or length to
unlimited. This has also been backported to 2.17 in some distributions (RHEL 7
and derivatives). Other softwares may have their own limits for search domains,
but we should not restrict what is written out any more.
https://sourceware.org/legacy-ml/libc-announce/2017/msg00001.html
2020-08-18 10:06:25 +02:00
Lennart Poettering
39cf0351c5
tree-wide: make use of new relative time events in sd-event.h
2020-07-28 11:24:55 +02:00
Yu Watanabe
f527c6fa08
resolvectl: fix older resolved or networkd support to set DNS servers
...
Fixes #16573 .
2020-07-26 11:05:06 +02:00
Yu Watanabe
f281fc1e95
tree-wide: use siphash24_compress_string() where it is applicable
2020-07-22 19:55:14 +09:00
Yu Watanabe
a574b7d152
resolvectl: use bus_message_read_in_addr_auto()
2020-07-21 04:12:11 +09:00
Yu Watanabe
7695e2cbbe
network, resolve: use bus_message_read_ifindex() or friends
2020-07-21 04:08:22 +09:00
Yu Watanabe
10d4620467
util: introduce bus_mesage_read_dns_servers()
2020-07-21 04:08:22 +09:00
Yu Watanabe
a747e71c56
resolvectl: show DNS servers with port and SNI
2020-07-21 04:08:22 +09:00
Yu Watanabe
b1881e8320
resolvectl: make DNS servers can be specified with port number and SNI
2020-07-21 04:08:22 +09:00
Yu Watanabe
8e56ea4c88
resolve: add DBus properties which support DNS SNI and port number
2020-07-21 04:08:22 +09:00
Yu Watanabe
95ce1ba87b
resolve: add DBus method to set DNS server with port number and SNI
2020-07-21 04:08:22 +09:00
Yu Watanabe
8aa5afd20f
resolve: read/save port number and SNI from/into link state file
2020-07-21 04:08:16 +09:00
Yu Watanabe
b6af282475
resolve: compare port and SNI in dns_server_hash_ops
2020-07-21 04:04:49 +09:00
Yu Watanabe
1b86009298
resolve: also compare port and SNI in dns_server_find()
2020-07-21 04:04:49 +09:00
Yu Watanabe
da9de7385a
resolve: support port specifier in DNS= setting
2020-07-21 04:04:42 +09:00
Yu Watanabe
395aa34023
resolve: ignore empty server name
...
Just for safety.
2020-07-21 03:55:34 +09:00
Yu Watanabe
cbe194b39e
resolve: propagate error in link_load_user()
...
Most error path in link_load_user() are ENOMEM. Hence, it is critical.
2020-07-21 03:55:34 +09:00
fangxiuning
d67b1d18fc
bus: use bus_log_parse_error to print message
2020-07-12 06:33:48 +09:00
Lennart Poettering
24e2494407
Merge pull request #16385 from JackFangXN/master
...
table add table_log_xx_error()
2020-07-08 12:12:29 +02:00
fangxiuning
4b6607d949
table use table_log_print_error() instead of table_log_show_error
2020-07-08 15:16:52 +08:00
Lennart Poettering
b3077c47a8
Merge pull request #16344 from keszybz/update-utmp-erofs
...
Make update-utmp not fail if it only fails to write wtmp records
2020-07-06 17:52:17 +02:00
Zbigniew Jędrzejewski-Szmek
272ac70a21
various daemons: emit Stopping... notification before destructing the manager object
...
This is mostly cosmetic, but let's reorder the destructors so that
we do the final sd_notify() call before we run the destructor for
the manager object.
2020-07-02 17:12:23 +02:00
Zbigniew Jędrzejewski-Szmek
cc832f9772
Merge pull request #16338 from keszybz/spelling2
...
Tree-wide spelling fixes
2020-07-02 15:10:27 +02:00