Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I'm trying to modify the domain search order that is obtained via DHCP a la dhclient.conf:

append domain-search "example.com";

I'm using Fedora 17 (beta) and it uses NetworkManager. It builds a file /var/run/nm-dhclient-INTERFACE.conf which it then calls as the config file for dhclient. My question is, how do I get NetworkManager to insert my line into that file?

share|improve this question

2 Answers 2

up vote 2 down vote accepted

Edit (or create) /etc/dhcp/dhclient-<device>.conf and add the line

append domain-search "example.com";
share|improve this answer

In fedora 19 I was able to do this by editing /etc/sysconfig/network-scripts/ifcfg-[network name here] and adding a line at the end that said:

DOMAIN=my.domain.com

It automatically restarted the connection when I saved and everything.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.