ubuntu@foufoune:~$ time ping __cloud_init_expected_not_found
ping: __cloud_init_expected_not_found: Temporary failure in name resolution
real 0m15.016s
user 0m0.000s
sys 0m0.003s
After applying the workaround from comment #11, I see fast lookups again.
ubuntu@foufoune:~$ cat /etc/systemd/resolved.conf
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See resolved.conf(5) for details
ubuntu@foufoune:~$ lsb_release -rd azure.archive. ubuntu. com/ubuntu artful-updates/main amd64 Packages dpkg/status 2ubuntu12. 1 500 security. ubuntu. com/ubuntu artful- security/ main amd64 Packages azure.archive. ubuntu. com/ubuntu artful/main amd64 Packages
Description: Ubuntu 17.10
Release: 17.10
ubuntu@foufoune:~$ apt-cache policy systemd
systemd:
Installed: 234-2ubuntu12.3
Candidate: 234-2ubuntu12.3
Version table:
*** 234-2ubuntu12.3 500
500 http://
100 /var/lib/
234-
500 http://
234-2ubuntu12 500
500 http://
ubuntu@foufoune:~$ time ping __cloud_ init_expected_ not_found init_expected_ not_found: Temporary failure in name resolution
ping: __cloud_
real 0m15.016s
user 0m0.000s
sys 0m0.003s
After applying the workaround from comment #11, I see fast lookups again.
ubuntu@foufoune:~$ cat /etc/systemd/ resolved. conf
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See resolved.conf(5) for details
[Resolve] r=udp
#DNS=
#FallbackDNS=
#Domains=
#LLMNR=yes
#MulticastDNS=yes
#DNSSEC=no
#Cache=yes
#DNSStubListene
LLMNR=no
ubuntu@foufoune:~$ time ping __cloud_ init_expected_ not_found init_expected_ not_found: Name or service not known
ping: __cloud_
real 0m0.006s
user 0m0.000s
sys 0m0.001s