I am running dnsmasq on a fully up to date Kubuntu 12.04 (admittedly under VMWARE but that shouldn't worry you).
I am trying to change the domain search path for unqualified computer names after a blunder at installation.
I have spent an hour searching the kde gui and the web looking for the window in which to type my new domain search path without success.
I found a page labeled "Configure service discovery" (no useful help available on the page) and added in my domain but it did not appear in resolv.conf. So, failing any apparent means of doing it using the Kde gui, I went back to the command line and nano.
My /etc/resolv.conf reads:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.0.1
search home
I know that I need to replace "search home" with "search mydomain.com"
Ah but, read the warning, it isn't so easy any more.
So, to the man pages for resolvconf which explains where it keeps information amongst other much more confusing stuff.
I may have found the source information (but not sure) and it doesn't warn about not editing.
That is /run/resolvconf/interface where a file called "NetworkManager" contains:
domain home
search home
nameserver 127.0.0.1
Where "home" is the bad domain name. I am nervous about editing this file containing no comments and perhaps re-written by something (who knows?)
However, apart from the obscurity of the resolvconf man pages, it does read "Normally resolvconf is run only by hook scripts"
and explains several invokers.
One of them is ifup (Ah! something I recognise) "using settings in /etc/network/interfaces" (Something else I recognise).
Quickly turning to my trusty terminal, /etc/network/interfaces contains:
auto lo
iface lo inet loopback
No ethernets in there!
When I do sudo ifdown eth0
quick as a flash comes back:
ifdown: interface eth0 not configured
BUT Ha! when I open the window "network management settings", select "network connections" and click "edit" for the wired connection it claims it is using "eth0" - fooled me! - but where is the configuration for it? AAAARRRRGGGHHHHHH.
Really I don't mind this labyrinthine structure - I presume there is a reason for it but all I want to do is change the **** domain name.
Anybody any thoughts about how to go about changing the domain search path - it just can't be THAT hard?
PS this is getting more like MS windows with each new release.
I am trying to change the domain search path for unqualified computer names after a blunder at installation.
I have spent an hour searching the kde gui and the web looking for the window in which to type my new domain search path without success.
I found a page labeled "Configure service discovery" (no useful help available on the page) and added in my domain but it did not appear in resolv.conf. So, failing any apparent means of doing it using the Kde gui, I went back to the command line and nano.
My /etc/resolv.conf reads:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.0.1
search home
I know that I need to replace "search home" with "search mydomain.com"
Ah but, read the warning, it isn't so easy any more.
So, to the man pages for resolvconf which explains where it keeps information amongst other much more confusing stuff.
I may have found the source information (but not sure) and it doesn't warn about not editing.
That is /run/resolvconf/interface where a file called "NetworkManager" contains:
domain home
search home
nameserver 127.0.0.1
Where "home" is the bad domain name. I am nervous about editing this file containing no comments and perhaps re-written by something (who knows?)
However, apart from the obscurity of the resolvconf man pages, it does read "Normally resolvconf is run only by hook scripts"
and explains several invokers.
One of them is ifup (Ah! something I recognise) "using settings in /etc/network/interfaces" (Something else I recognise).
Quickly turning to my trusty terminal, /etc/network/interfaces contains:
auto lo
iface lo inet loopback
No ethernets in there!
When I do sudo ifdown eth0
quick as a flash comes back:
ifdown: interface eth0 not configured
BUT Ha! when I open the window "network management settings", select "network connections" and click "edit" for the wired connection it claims it is using "eth0" - fooled me! - but where is the configuration for it? AAAARRRRGGGHHHHHH.
Really I don't mind this labyrinthine structure - I presume there is a reason for it but all I want to do is change the **** domain name.
Anybody any thoughts about how to go about changing the domain search path - it just can't be THAT hard?
PS this is getting more like MS windows with each new release.
Comment