Add Search Domain for DNS in CentOS 8
There is no option in network configuration GUI menu for search domain. Following steps can be used to add search domain.
- Modify file
/etc/sysconfig/network-scripts/ifcfg-<interface_name>
- Add line
SEARCH=<search_domain>
- Restart NetworkManager by run command
systemctl restart NetworkManager
References
How to configure static DNS and Search domain for Redhat / CentOS and Redhat Linux