Monday, March 14, 2011

Configure default search domain for DNS in Linux

Lets say we are part of domain xyz.com.
So when we "ping abc", we intend to ping "abc.xyz.com", how can we make the system pick default suffix?

Simplest solution is edit /etc/resolv.conf and add a line
"search xyz.com"