After upgrading from SLES12SP5 to SLES15SP5, a DNS entry under /etc/resolv.conf disappeared
This document (000021579) is provided subject to the disclaimer at the end of this document.
Environment
SUSE Linux Enterprise Server 15 SP5
SUSE Linux Enterprise Server for SAP Applications 15 SP5
Situation
After upgrading from SLES12SP5 to SLES15SP5, a DNS entry under /etc/resolv.conf disappeared.
Resolution
Add your desired DNS server ip address in /etc/sysconfig/network/config with the line:
NETCONFIG_DNS_STATIC_SERVERS="x.x.x.x y.y.y.y"
After changing the configuration, using the following command to refresh and update the configuration:
netconfig update -f
Cause
Selected Default Policy option in YaST , the configuration is handled by the netconfig script which merges the data defined statically.
Additional Information
For more detail information , please refer to the following official document section “23.4.1.4 Configuring host name and DNS”
https://documentation.suse.com/sles/15-SP5/html/SLES-all/cha-network.html
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:000021579
- Creation Date: 09-Oct-2024
- Modified Date:12-Nov-2024
-
- SUSE Linux Enterprise Server
- SUSE Linux Enterprise Server for SAP Applications
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com