Ask Your Question

How do I add a search domain using NetworkManager?

asked 2015-04-23 20:28:04 -0500

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-26 19:16:45 -0500

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 gravatar imagesteeve ( 2016-09-17 09:21:55 -0500 )edit

answered 2015-04-23 21:15:12 -0500

aeperezt gravatar image

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 gravatar imageaeperezt ( 2015-04-23 21:16:11 -0500 )edit

answered 2016-04-28 02:11:46 -0500

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

edit flag offensive delete link more


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

steeve gravatar imagesteeve ( 2016-09-17 09:24:20 -0500 )edit

Question Tools



Asked: 2015-04-23 20:28:04 -0500

Seen: 26,917 times

Last updated: Apr 23 '15