Ask Your Question

How do I add a search domain using NetworkManager?

asked 2015-04-24 01:28:04 +0000

a7ndrew gravatar image

I'm pretty sure that at one stage It was possible to add search domains to your hostname resolution using NetworkManager, in fact here's a screenshot:

image description

But I can't figure out how to do this with Fedora 21.

edit retag flag offensive close merge delete

3 answers

Sort by » oldest newest most voted

answered 2015-04-27 00:16:45 +0000

a7ndrew gravatar image

It appears the ability to do this has been removed from NetworkManager gui but not from NetworkManager itself. The possible ways to fix this are by using the nm-connection-editor gui, or nmcli.

edit flag offensive delete link more


This is the result I was looking for. How is this functionality not considered to be important enough for the gnome shell network configuration applet. Can also confirm that it is still lacking (broken) in gnome shell 3.20

steeve ( 2016-09-17 14:21:55 +0000 )edit

answered 2016-04-28 07:11:46 +0000

flexo3001 gravatar image

As an alternative to the nm-connection-editor you can edit the corresponding profile-file /etc/sysconfig/network-scripts/ifcfg-PROFILENAME and add DOMAIN=example.com.

edit flag offensive delete link more


Ah yes, this seems to be what nm-connection-editor is updating. Thanks for the pointer.

steeve ( 2016-09-17 14:24:20 +0000 )edit

answered 2015-04-24 02:15:12 +0000

Best way I found to do that is to add a config file on /etc/NetworkManager/dnsmasq.d/

file name could be my-company.conf and the content will be something like:


edit flag offensive delete link more


content of the file is like this server=/domain-name/dns server

aeperezt ( 2015-04-24 02:16:11 +0000 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Use your votes!

  • Use the 30 daily voting points that you get!
  • Up-vote well framed questions that provide enough information to enable people provide answers.
  • Thank your helpers by up-voting their comments and answers. If a question you asked has been answered, accept the best answer by clicking on the checkbox on the left side of the answer.
  • Down-voting might cost you karma, but you should consider doing so for incorrect or clearly detrimental questions and answers.

Question Tools



Asked: 2015-04-24 01:28:04 +0000

Seen: 16,747 times

Last updated: Apr 24 '15