Susant Sahani
10452f7c93
core: introduce parse_ip_port ( #4825 )
...
1. Listed in TODO.
2. Tree wide replace safe_atou16 with parse_ip_port incase
it's used for ports.
2016-12-06 12:21:45 +01:00
Thomas H. P. Andersen
f68c9dd5c6
resolve: remove unsed counter ( #4349 )
...
It was introduced but never used in 45ec7efb
.
2016-10-11 13:51:03 -04:00
Stefan Schweter
a60f4d0b44
systemd-resolve: use sha256 for local-part of openpgp key ( #4193 )
2016-10-08 13:59:34 +02:00
Zbigniew Jędrzejewski-Szmek
90b4a64d77
nspawn,resolve: short --help output to fit within 80 columns
...
make dist-check-help FTW!
2016-08-04 09:03:42 -04:00
Zbigniew Jędrzejewski-Szmek
96ace31dcd
systemd-resolve: remove spurious newline with no global settings
2016-07-17 19:58:02 -04:00
Zbigniew Jędrzejewski-Szmek
7b7c1aacf6
systemd-resolve: use plural "DNS Servers"
...
Usually multiple DNS servers are configured, and it looks strange to have
singular in the heading.
2016-07-17 19:58:02 -04:00
Lennart Poettering
be371fe039
resolve: add "systemd-resolve --status" command
...
The new command shows the per-link and global DNS configuration currently in
effect. This is useful to quickly see the DNS settings resolved acquired from
networkd and that was pushed into it via the bus APIs.
2016-06-21 13:20:47 +02:00
Lennart Poettering
145fab1eae
resolve: port resolve tool to in_addr_ifindex_{from_string_auto|to_string}()
...
We can reuse some code here, so let's do it.
2016-06-14 23:27:30 +02:00
Lennart Poettering
ba35662fbd
resolved: also add a way to flush all caches via the bus
...
And expose it in "resolve-tool --flush-caches".
2016-06-10 23:26:53 +02:00
Lennart Poettering
3c6f7c3402
util-lib: make localed's nonempty() generic, rename it to empty_to_null() and make use of it everywhere
2016-05-30 17:59:43 +02:00
Zbigniew Jędrzejewski-Szmek
b68f10bf1f
build-sys: fix build with libgrcypt disabled
...
- Move gcrypt.h include inside grcrypt-util.h.
- Allow gcrypt-util.[ch] to be compiled even without gcrypt.
This allows the logic in files using gcrypt to be simplified.
- Fix compilation of systemd-resolve without gcrypt.
systemd-resolved already supported that.
Fixes #2711 .
2016-03-27 21:51:44 -04:00
Alexander Kuleshov
5883ff6017
tree-wide: use SET_FLAG() macro to make code more clear
2016-03-05 18:26:01 +06:00
Zbigniew Jędrzejewski-Szmek
82d1d24093
systemd-resolve: easy querying of TLSA records
...
$ systemd-resolve --tlsa fedoraproject.org
_443._tcp.fedoraproject.org IN TLSA 0 0 1 GUAL5bejH7czkXcAeJ0vCiRxwMnVBsDlBMBsFtfLF8A=
-- Cert. usage: CA constraint
-- Selector: Full Certificate
-- Matching type: SHA-256
$ systemd-resolve --tlsa=tcp fedoraproject.org:443
_443._tcp.fedoraproject.org IN TLSA 0 0 1 GUAL5bejH7czkXcAeJ0vCiRxwMnVBsDlBMBsFtfLF8A=
...
$ systemd-resolve --tlsa=udp fedoraproject.org
_443._udp.fedoraproject.org: resolve call failed: '_443._udp.fedoraproject.org' not found
v2:
- use uint16_t
- refuse port 0
2016-02-18 11:41:40 -05:00
Zbigniew Jędrzejewski-Szmek
dab48ea63a
systemd-resolve: allow whole packets to be dumped in binary form
2016-02-16 19:55:50 -05:00
Zbigniew Jędrzejewski-Szmek
2e74028a5c
systemd-resolve: allow keys to be dumped in binary form
...
$ systemd-resolve --raw --openpgp zbyszek@fedoraproject.org | pgpdump /dev/stdin
2016-02-16 19:24:07 -05:00
Zbigniew Jędrzejewski-Szmek
1ace2438c6
systemd-resolve: reword --help output
...
The output didn't specify if the default for --cname/--search/--legend and
other options was yes or no. Change the description to be explicit about that.
Also make the --help output and man page closer.
2016-02-16 19:10:25 -05:00
Lennart Poettering
41815a4aa6
resolve: print a noisy warning if we show crypto keys that could not be authenticated
...
Doing DNS retrieval on non-authenticated crypt keys is useless, hence warn
loudly about it.
2016-02-16 15:30:03 +01:00
Lennart Poettering
91ba5ac7d0
Merge pull request #2589 from keszybz/resolve-tool-2
...
Better support of OPENPGPKEY, CAA, TLSA packets and tests
2016-02-13 11:15:41 +01:00
Zbigniew Jędrzejewski-Szmek
4ac2ca1bdb
systemd-resolve: allow easy querying of openpgp keys
...
$ systemd-resolve --openpgp zbyszek@fedoraproject.org
d08ee310438ca124a6149ea5cc21b6313b390dce485576eff96f8722._openpgpkey.fedoraproject.org. IN OPENPGPKEY
mQINBFBHPMsBEACeInGYJCb+7TurKfb6wGyTottCDtiSJB310i37/6ZYoeIay/5soJjlM
yfMFQ9T2XNT/0LM6gTa0MpC1st9LnzYTMsT6tzRly1D1UbVI6xw0g0vE5y2Cjk3xUwAyn
...
2016-02-11 13:12:41 -05:00
Daniel Mack
b26fa1a2fb
tree-wide: remove Emacs lines from all files
...
This should be handled fine now by .dir-locals.el, so need to carry that
stuff in every file.
2016-02-10 13:41:57 +01:00
Zbigniew Jędrzejewski-Szmek
ba82da3bb5
resolve-host: add option to list protocols
2016-01-29 12:13:08 -05:00
Lennart Poettering
7405bb3ec0
resolve: fix wording in resolver statistics output
...
Now that we count both negative and positive validation results, we shouldn't claim we just counted RRsets.
2016-01-25 17:19:19 +01:00
Lennart Poettering
300a716dc4
resolve: minor strings improvements
2016-01-25 17:19:18 +01:00
Lennart Poettering
b5eb973b39
resolve: rename "systemd-resolve-host" tool to simply "systemd-resolve"
...
The tool resolves way more than just hosts, hence give it a more generic name. This should be safe, as the tool is
currently undocumented. Before we add documentation for it, let's get the name right.
This also moves the C source into src/resolve/ (from src/resolve-host/), since the old name is a misnomer now. Also,
since it links directly to many of the C files of resolved it really belongs into resolved's directory anyway.
2016-01-25 16:00:28 +01:00