Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 3 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:


It automatically restarted the connection when I saved and everything.

share|improve this answer

Your Answer


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.