What will happen when setting both search and domain in /etc/resolv.conf

Solution Verified - Updated -

Issue

  • When setting both search and domain in /etc/resolv.conf like below, which will apply ?
nameserver 1.2.3.4
domain test1.com
search test2.com

Environment

  • Red Hat Enterprise Linux

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content