Home > Linux > DNS Suffix in Linux

DNS Suffix in Linux

I’m using CentOS 6 in this case.

**Make sure you have the Domain attribute in the ifcfg-eth0:

# vi /etc/sysconfig/network-scripts/ifcfg-eth0

If you have more than 1 domains:

DOMAIN="site1.domain.com site2.domain.com"

After the above setting, system will auto add the search line in /etc/resolv.conf

# cat /etc/resolv.conf
search site1.domain.com site2.domain.com
Categories: Linux Tags: , , ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: