I'm running Ubuntu 14.04 on a particular server. In the /etc/resolv.conf there are two search lines: search domA.example.org domB.example.org # [NOTE I made these up, but the form is the same] search domA.example.org
I want the search setting to be just: search domA.example.org
I've deleted the top/offending line, but every time I restart dnsmasq or run resolvconf -u (for example), the offending line comes back. Where is it getting the domB.example.org from? I've looked in all the usual places (I think), and tried "grep -R domB *" in /etc, but nothing turns up! I'm at a loss.
Any pointers on where I should look next?
Thanks, Kevin
Either NetworkManager or /etc/network/interfaces.
On August 16, 2016 2:14:07 PM CDT, Kevin McGregor kevin.a.mcgregor@gmail.com wrote:
I'm running Ubuntu 14.04 on a particular server. In the /etc/resolv.conf there are two search lines: search domA.example.org domB.example.org # [NOTE I made these up, but the form is the same] search domA.example.org
I want the search setting to be just: search domA.example.org
I've deleted the top/offending line, but every time I restart dnsmasq or run resolvconf -u (for example), the offending line comes back. Where is it getting the domB.example.org from? I've looked in all the usual places (I think), and tried "grep -R domB *" in /etc, but nothing turns up! I'm at a loss.
Any pointers on where I should look next?
Thanks, Kevin
Roundtable mailing list Roundtable@muug.mb.ca http://www.muug.mb.ca/mailman/listinfo/roundtable
Is this server setting its interface addresses manually, or is it a DHCP client? In the latter case, the DHCP server may be specifying the domain search list, and the client side is happily overwriting your /etc/resolv.conf on every lease renewal.
Gilbert
On 16/08/2016 2:14 PM, Kevin McGregor wrote:
I'm running Ubuntu 14.04 on a particular server. In the /etc/resolv.conf there are two search lines: search domA.example.org http://domA.example.org domB.example.org http://domB.example.org # [NOTE I made these up, but the form is the same] search domA.example.org http://domA.example.org
I want the search setting to be just: search domA.example.org http://domA.example.org
I've deleted the top/offending line, but every time I restart dnsmasq or run resolvconf -u (for example), the offending line comes back. Where is it getting the domB.example.org http://domB.example.org from? I've looked in all the usual places (I think), and tried "grep -R domB *" in /etc, but nothing turns up! I'm at a loss.
Any pointers on where I should look next?
Thanks, Kevin
Nope, static: iface eth0 inet static
It's a server, and we don't use DHCP for servers (alas). We're using dnsmasq locally on all servers solely for DNS resolution caching.
On Tue, Aug 16, 2016 at 2:36 PM, Gilbert E. Detillieux < gedetil@cs.umanitoba.ca> wrote:
Is this server setting its interface addresses manually, or is it a DHCP client? In the latter case, the DHCP server may be specifying the domain search list, and the client side is happily overwriting your /etc/resolv.conf on every lease renewal.
Gilbert
On 16/08/2016 2:14 PM, Kevin McGregor wrote:
I'm running Ubuntu 14.04 on a particular server. In the /etc/resolv.conf there are two search lines: search domA.example.org http://domA.example.org domB.example.org http://domB.example.org # [NOTE I made these up, but the form is the same] search domA.example.org http://domA.example.org
I want the search setting to be just: search domA.example.org http://domA.example.org
I've deleted the top/offending line, but every time I restart dnsmasq or run resolvconf -u (for example), the offending line comes back. Where is it getting the domB.example.org http://domB.example.org from? I've looked in all the usual places (I think), and tried "grep -R domB *" in /etc, but nothing turns up! I'm at a loss.
Any pointers on where I should look next?
Thanks, Kevin
-- Manitoba UNIX User Group E-mail: gedetil@muug.mb.ca c/o Gilbert E. Detillieux Web: http://www.muug.mb.ca/ University of Manitoba Phone: (204)474-8161 Winnipeg MB CANADA R3T 2N2 Fax: (204)474-7609 _______________________________________________
Roundtable mailing list Roundtable@muug.mb.ca http://www.muug.mb.ca/mailman/listinfo/roundtable
As Adam suggested, look at NetworkManager. For a static configuration, it would probably be best to make sure it's disabled. While it's not systemd-level invasive (cue sound of can of worms opening), it does tend to get its mitts on things it would be best if it didn't. It may be the thing for roaming clients, but not for servers that stay put on a fixed IP address.
On 2016-08-16 14:41, Kevin McGregor wrote:
Nope, static: iface eth0 inet static
It's a server, and we don't use DHCP for servers (alas). We're using dnsmasq locally on all servers solely for DNS resolution caching.
On Tue, Aug 16, 2016 at 2:36 PM, Gilbert E. Detillieux <gedetil@cs.umanitoba.ca mailto:gedetil@cs.umanitoba.ca> wrote:
Is this server setting its interface addresses manually, or is it a DHCP client? In the latter case, the DHCP server may be specifying the domain search list, and the client side is happily overwriting your /etc/resolv.conf on every lease renewal. Gilbert On 16/08/2016 2:14 PM, Kevin McGregor wrote: I'm running Ubuntu 14.04 on a particular server. In the /etc/resolv.conf there are two search lines: search domA.example.org <http://domA.example.org> <http://domA.example.org> domB.example.org <http://domB.example.org> <http://domB.example.org> # [NOTE I made these up, but the form is the same] search domA.example.org <http://domA.example.org> <http://domA.example.org> I want the search setting to be just: search domA.example.org <http://domA.example.org> <http://domA.example.org> I've deleted the top/offending line, but every time I restart dnsmasq or run resolvconf -u (for example), the offending line comes back. Where is it getting the domB.example.org <http://domB.example.org> <http://domB.example.org> from? I've looked in all the usual places (I think), and tried "grep -R domB *" in /etc, but nothing turns up! I'm at a loss. Any pointers on where I should look next? Thanks, Kevin
On 2016-08-16 Kevin McGregor wrote:
search domA.example.org domB.example.org # [NOTE I made these up, but
My money is on NM also, like the others said. Invasive little !@%!@#%. You need to get it the heck out (uninstall) if you can, and/or make sure to put these in the ifcfg file for each interface:
NOZEROCONF=1 NM_CONTROLLED=no USE_NM=no PEERDNS=no
Sure sounds like PEERDNS is what is biting you. Are you using static PPPoE?
If that doesn't work, see what this tells you:
grep -iR domB.example.org /etc
It's gotta be coming from somewhere, and that somewhere is likely /etc. Could also search /var if you're pretty sure you won't get a zillion unrelated log files spilling their output.
If that still doesn't work, send us your ifcfg-* files for the relevant if's and tell us exactly what technology (first 2 OSI layers) it's using.