[CentOS] midco stealling searches, was browsers slowing Centos 7 installation to a crawl

Tue Dec 3 20:03:10 UTC 2019
Michael Hennebry <hennebry at web.cs.ndsu.nodak.edu>

On Tue, 3 Dec 2019, Jonathan Billings wrote:

> On Tue, Dec 03, 2019 at 01:17:53PM -0600, Michael Hennebry wrote:
>> I only have ifcfg-lo , which I am pretty sure is the loopback interface.
>> As expected, other files suggest eth0 is my ethernet connection.
>> Should I add a one-line ifcfg-eth0 file?
> If you are using ethernet (and not a wireless device or some other
> internet connectivity) you should have an ifcfg- file for the
> interface.  Look at the output of 'ip link' to see all the interfaces
> you have configured.

[root at localhost ~]# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp0s25: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
     link/ether 00:23:7d:4d:98:89 brd ff:ff:ff:ff:ff:ff
[root at localhost ~]#

>> Currently I have
>> # Generated by NetworkManager
>> # search midcoip.net
>> nameserver 2001:48f8:3004:2ce:5a19:f8ff:fe9e:a4bc
>> nameserver

> Since there's no ifcfg file, I suspect you're using NetworkManager to
> manage your network.  ...

I'm using the default I got when I installed centos 7.
Was not aware of any alternatives.

> ... Run 'nmcli con' to get a list of your network

[root at localhost ~]# nmcli con
NAME                UUID                                  TYPE      DEVICE 
Wired connection 1  e4c3a05e-5f33-3ae8-af71-31b70ecf040b  ethernet  enp0s25 
[root at localhost ~]#

> connections, and then run 'nmcli con edit "Connection Name"' (replace
> "Connection Name" with the name of your ethernet connection).  You can
> then set ipv4.ignore-auto-dns to 'yes' and then set ipv4.dns and
> ipv4.dns-search.  This should override what DHCP sets.

[root at localhost ~]# nmcli con edit enp0s25
Error: Unknown connection 'enp0s25'.
[root at localhost ~]# nmcli con edit eth0
Error: Unknown connection 'eth0'.
[root at localhost ~]# nmcli con edit  enp0s25 
Error: Unknown connection 'enp0s25'.
[root at localhost ~]#

The last was a copy and paste.

Would I still get leases from DHCP?
Does DHCP set nameservers?
Ideally, I'd like to override just search.

>>> This is documented in /usr/share/doc/initscripts-*/sysconfig.txt
>> I have /usr/share/doc/initscripts-9.49.47/sysconfig.txt only.
> I used the * as a glob, not a literal character.

Sorry about that.
I'd thought you meant that there was a whole set of them.

Michael   hennebry at web.cs.ndsu.NoDak.edu
"Sorry but your password must contain an uppercase letter, a number,
a haiku, a gang sign, a heiroglyph, and the blood of a virgin."
                                                              --  someeecards