diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-03-26 14:14:38 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-03-26 21:24:36 +0100 |
commit | 200b4f3d800afcb7c2fcba9fd6d1a35ffbee51c6 (patch) | |
tree | 4ddb65edbc562f44850cd029bb3660dff5a8314f | |
parent | 058946d1f91ea3ab4d236959ac1671bbd16a1461 (diff) | |
download | systemd-200b4f3d800afcb7c2fcba9fd6d1a35ffbee51c6.tar.gz |
resolvectl: suppress warning about --type for names with a dot
People don't generally type the trailing dot by mistake, so let's treat this as
indication that they want to resolve this particular hostname.
-rw-r--r-- | src/resolve/resolvectl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolve/resolvectl.c b/src/resolve/resolvectl.c index 269151b9b1..52bbae3293 100644 --- a/src/resolve/resolvectl.c +++ b/src/resolve/resolvectl.c @@ -476,7 +476,7 @@ static int resolve_record(sd_bus *bus, const char *name, uint16_t class, uint16_ log_debug("Resolving %s %s %s (interface %s).", name, dns_class_to_string(class), dns_type_to_string(type), isempty(arg_ifname) ? "*" : arg_ifname); - if (single_label_nonsynthetic(name)) + if (dns_name_dot_suffixed(name) == 0 && single_label_nonsynthetic(name)) log_notice("(Note that search domains are not appended when --type= is specified. " "Please specify fully qualified domain names, or remove --type= switch from invocation in order to request regular hostname resolution.)"); |