由于您似乎使用resolvconf,因此您需要在网络接口文件中使用dns-search选项
- #/etc/network/interfaces
- # The primary network interface
- auto eth0
- iface eth0 inet static
- address 10.2.37.4
- netmask 255.255.254.0
- gateway 10.2.37.1
- dns-nameservers 10.2.51.4 10.2.52.4
- dns-search example.org