Jonathan Billings
2019-Dec-03 19:37 UTC
[CentOS] midco stealling searches, was browsers slowing Centos 7 installation to a crawl
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.> Currently I have > # Generated by NetworkManager > # search midcoip.net > nameserver 2001:48f8:3004:2ce:5a19:f8ff:fe9e:a4bc > nameserver 192.168.0.1 > > My understanding is that the network manager > generates resolv.conf and DHCP edits it. > Does the network manager include nameservers? > Would putting PEERDNS=no in a ifcfg-eth0 file > result in an empty resolv.conf ? > I realize I could just try it and see, > but I do not know how much damage I could do if I mess it up.Since there's no ifcfg file, I suspect you're using NetworkManager to manage your network. Run 'nmcli con' to get a list of your network 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.> > 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. -- Jonathan Billings <billings at negate.org>
Michael Hennebry
2019-Dec-03 20:03 UTC
[CentOS] midco stealling searches, was browsers slowing Centos 7 installation to a crawl
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 192.168.0.1> 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
Jonathan Billings
2019-Dec-03 20:12 UTC
[CentOS] midco stealling searches, was browsers slowing Centos 7 installation to a crawl
On Tue, Dec 03, 2019 at 02:03:10PM -0600, Michael Hennebry wrote:> 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 enp0s25Your connection's name is "Wired connection 1". The device name is 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 ~]#You need to use the connection name, not the device name. -- Jonathan Billings <billings at negate.org>
Apparently Analagous Threads
- midco stealling searches, was browsers slowing Centos 7 installation to a crawl
- midco stealling searches, was browsers slowing Centos 7 installation to a crawl
- midco stealling searches, was browsers slowing Centos 7 installation to a crawl
- midco stealling searches, was browsers slowing Centos 7 installation to a crawl
- midco stealling searches, was browsers slowing Centos 7 installation to a crawl