Disable Search Domains
Overview
Set Use Domains to False
Set Accept RA to False
Create Netplan
cat > /etc/netplan/01-netcfg.yaml <<'EOF'
network:
version: 2
renderer: networkd
ethernets:
all:
match:
name: en*
dhcp4: yes
dhcp4-overrides:
use-domains: false
# disable accept-ra, otherwise it will bring search domains to your /etc/resolv.conf
# refs https://bugs.launchpad.net/netplan/+bug/1858503
accept-ra: false
optional: true
EOFTest and Apply Netplan
Expected/Example Output
Last updated