/etc/resolv.conf Domain Search list does not use listed domains
This document (7015868) is provided subject to the disclaimer at the end of this document.
SUSE Linux Enterprise Server 11
SUSE Linux Enterprise Server 10
linux-4m2p:~/Desktop # ping node1
ping: unknown host node1
linux-4m2p:~/Desktop # nslookup node1
** server can't find node1: NXDOMAIN
linux-4m2p:~/Desktop # traceroute node1
node1: Name or service not known
The /etc/resolv.conf will shows the domain search list.
This will fail since it has commas, it needs a single space or tab in between each domain.
If this was used the only one to be checked would be example.com (the last in the list).
Example 1 Fixed
search suse.com foo.com example.com
Example 2 Fixed
search domainname.net suse.com foo.com example.com
Setting this in Yast2 > Network Settings > Hostname/DNS > Domain Search box will also work.
"The search list is normally determined from the local domain name; by default, it contains only the local domain name. This may be changed by listing the desired domain search path following the search keyword with spaces or tabs separating the names. Note that this process may be slow and will generate a lot of network traffic if the servers for the listed domains are not local, and that queries will time out if no server is available for one of the domains [as it goes through each in the list until it finds a match]. The search list is currently limited to six domains with a total of 256 characters."
-Per manpage resolv.conf (5)
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:7015868
- Creation Date: 07-Nov-2014
- Modified Date:23-Feb-2021
- SUSE Linux Enterprise Desktop
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: firstname.lastname@example.org