Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 3.144.92.231
[Unit]
Description=Update resolvconf for networkd DNS
DefaultDependencies=no
ConditionPathIsSymbolicLink=/etc/resolv.conf
ConditionPathExists=/run/resolvconf/enable-updates
After=resolvconf.service
Before=network-online.target
[Service]
Type=oneshot
StartLimitBurst=20
# we might be triggered several times in short succession during restarting networkd, so wait until we get a DNS entry
ExecStart=/bin/sh -c 'for timeout in `seq 30`; do out=$$(sed -n "/^DNS=/ { s/^DNS=/nameserver /; p}" /run/systemd/netif/state /run/systemd/netif/leases/* | sort -u); [ -z "$$out" ] || break; sleep 1; done; { echo "$$out"; sed -n "/^DOMAINS=/ { s/^.*=/search /; p}" /run/systemd/netif/state; } | /sbin/resolvconf -a networkd'
|