RHEL 6, NetworkManager and resolv.conf

Latest response

Having spent some time with NetworkManager on RHEL 6 lately, I have noticed an oddity in its created /etc/resolv.conf

# Generated by NetworkManager
domain pridomain.com
search pridomain.com secdomain.com
nameserver 8.8.8.8
nameserver 8.8.4.4

It creates the /etc/resolv.conf with both 'domain' and 'search' options set, which is contrary to what the man page suggests is valid / correct.

From the man page for resolv.conf:
"The domain and search keywords are mutually exclusive. If more than one instance of these keywords is present, the last instance wins."

So in this case the 'search' option is overwriting the 'domain' option and the 'domain' option is superfluous.

Is this a bug.. or just not perfect? Is there a valid reason for why it is configured this way?

Responses