How do I set dns-search?

Asked by Ken Sharp

dns-search example.com

is an enormously useful setting which resides in /etc/network/interfaces. Annoyingly I can see no way to set this option with nm-connection-editor. Is there a way to do this or do I have to dump this entire package and try to get my laptop working properly without it (which it hasn't for a LONG while)?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu network-manager-applet Edit question
Assignee:
No assignee Edit question
Solved by:
Ken Sharp
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

What is the output of:

lsb_release -a; uname -a; apt-cache policy network-manager

Thanks

Revision history for this message
Ken Sharp (kennybobs) said :
#2

$ lsb_release -a; uname -a; apt-cache policy network-manager
LSB Version: core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:core-4.0-amd64:core-4.0-noarch
Distributor ID: Ubuntu
Description: Ubuntu 12.04.2 LTS
Release: 12.04
Codename: precise
Linux aspire 3.2.0-39-generic #62-Ubuntu SMP Thu Feb 28 00:28:53 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
network-manager:
  Installed: 0.9.4.0-0ubuntu4.2
  Candidate: 0.9.4.0-0ubuntu4.2
  Version table:
 *** 0.9.4.0-0ubuntu4.2 0
        500 http://gb.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     0.9.4.0-0ubuntu3 0
        500 http://gb.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

Did you set the interface to DHCP ( address only )?

Revision history for this message
Ken Sharp (kennybobs) said :
#4

It's set to Automatic (DHCP). If I set the DNS server using (Address only) then moving the laptop on another network might cause problems. The DNS won't work for one.

Can the network manager recognise specific networks and configure as required?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

You can edit the interfaces file as you need.

Revision history for this message
Ken Sharp (kennybobs) said :
#6

Network Manager is thoroughly incapable and should be removed.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#7

You dont have to use it. I use wicd instead