Hi
If your using wicked, then define them via YaST Network Settings, if using NetworkManager, in the profile (I normally create and give a name), under the ipv4 tab, define then here as a comma delimited list eg;
yes it works but the order is inverted :{
i need options rotate to be set up but I don’t know where to specify it…
I though NETCONFIG_DNS_RESOLVER_OPTIONS directive wes the one but it failed :{ nothing in /etc/resolv.conf looks as the /etc/sysconfig/network/config file said :{
Oh ! NETCONFIG_DNS_RESOLVER_SORTLIST would be nice to edit in the correct order of the nameservers !!
Other solution with the modification of two files, when you are using a laptop that is about to be connected to several different WiFI:Wired connexions…
prepend domain-name-servers <Your DNS here or 127.0.0.1>;
require subnet-mask, domain-name-servers;
…if you want to be sure nslookup will succeed everytime with a “personnal” or “enterprise” DNS that may not forward the requests… in …/system-connexions…
To the @OP,
Why did you use the command “search?”
Did you find that somewhere, and where?
To troubleshoot name resolution issues, the utilities normally used are “dig” and “nslookup.”
The former is probably more hard core linux, the nslookup command is more modern and intuitive.
Are you referring to the ‘search’ directive in the OP’s posted resolv.conf? That is a legit option (one I use for specifying domain names explicity)
From ‘man resolv.conf’…
search Search list for host-name lookup.
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 separat-
ing the names. Resolver queries having fewer than ndots dots (default is 1) in them will be attempted using each compo-
nent of the search path in turn until a match is found. For environments with multiple subdomains please read options
ndots:n below to avoid man-in-the-middle attacks and unnecessary traffic for the root-dns-servers. 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.
The search list is currently limited to six domains with a total of 256 characters.