On Mon, 8 May 2017 13:29:02 -0400 lingpanda101 via samba <samba at lists.samba.org> wrote:> > > I believe Rowland is speaking specifically to CentOS 7.3 and not > Ubuntu. CentOS requires network config changes in > > /etc/sysconfig/network-scripts/ifcfg-"Your Interface" > > I can't recall where in CentOS to make changes to resolv.conf. >What I was trying to point out was that I couldn't change anything in /etc on Centos 7.3, I wasn't allowed to. I couldn't change something on my own computer because somebody, somewhere has decided I shouldn't. I can guess what it is, but without in depth investigation, I cannot point the finger at anything. All I wanted to do was change the nameserver, but, as I said, I wasn't allowed to. I would also like to point out I know where to put the settings, if I am changing them permanently, even on a raspberry pi ;-) Rowland
On 5/8/2017 2:01 PM, Rowland Penny via samba wrote:> On Mon, 8 May 2017 13:29:02 -0400 > lingpanda101 via samba <samba at lists.samba.org> wrote: > >> I believe Rowland is speaking specifically to CentOS 7.3 and not >> Ubuntu. CentOS requires network config changes in >> >> /etc/sysconfig/network-scripts/ifcfg-"Your Interface" >> >> I can't recall where in CentOS to make changes to resolv.conf. >> > What I was trying to point out was that I couldn't change anything > in /etc on Centos 7.3, I wasn't allowed to. I couldn't change something > on my own computer because somebody, somewhere has decided I shouldn't. > I can guess what it is, but without in depth investigation, I cannot > point the finger at anything. > > All I wanted to do was change the nameserver, but, as I said, I wasn't > allowed to. > > I would also like to point out I know where to put the settings, if I > am changing them permanently, even on a raspberry pi ;-) > > Rowland > >Where do you make the changes on CentOS to update resolv.conf? OP should verify his isn't being overwritten. Thanks. -- -- James
martini5468 at gmail.com
2017-May-09 14:14 UTC
[Samba] Samba Active Directory Domain Controller
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On 08/05/17 19:11, lingpanda101 via samba wrote:>>> I believe Rowland is speaking specifically to CentOS 7.3 and not >>> Ubuntu. CentOS requires network config changes in >>> >>> /etc/sysconfig/network-scripts/ifcfg-"Your Interface" >>> >>> I can't recall where in CentOS to make changes to resolv.conf. >>> >> What I was trying to point out was that I couldn't change anything >> in /etc on Centos 7.3, I wasn't allowed to. I couldn't change something >> on my own computer because somebody, somewhere has decided I shouldn't. >> I can guess what it is, but without in depth investigation, I cannot >> point the finger at anything. >> >> All I wanted to do was change the nameserver, but, as I said, I wasn't >> allowed to. >> >> I would also like to point out I know where to put the settings, if I >> am changing them permanently, even on a raspberry pi ;-) >> >> Rowland >> > Where do you make the changes on CentOS to update resolv.conf? OP should > verify his isn't being overwritten. Thanks.I may be a bit too late jumping on this thread but here are a few pointers: 1. /etc/resolve.conf is automagically generated/updated by NetworkManager 2. any DNS entries in ifcfg files in /etc/sysconfig/network-scripts get put in /etc/resolve.conf by NetworkManager 3. systemd can be set to mount the system filesystems read-only. This can be checked in /etc/sysconfig/readonly-root. I tried to look for more info on read-only rootfs but found only bug reports ;). I have also heard talk that people have found their /etc as read-only after a CentOS 7 update - personally I have not experienced it. While tempting to just disable NetworkManager and configure your network scripts and resolve.conf any which way you like I ran into a problem where after the latest systemd update the boot time unit ordering is broken and any services trying to bind to an IP:PORT combo will fail[1][2]. E.g. having SSHD configured with ListenAddress XXX.XXX.XXX.XXX:22 will fail to start as systemd will try to bring up the service before the network-online target. The fix is to either drop-in a systemd unit override or to add a target dependency. According to readhat fix is on the way. [1] - bugzilla.redhat.com/show_bug.cgi?id=1438749 [2] - bugs.centos.org/view.php?id=13146 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCgAGBQJZEc6wAAoJENv96Y4lVr1cIsIP/jwl0kuHn7h+nlg7Yx0oGb8s l+HnNmhM2JDcERp/45klcT0+HfZLt22s2NADVUwP+D5qlMUBIHqgW9IM1Y33Dujg hO4sWOWTqN7sYFe6TP9kfGuulO5fm695aY0zzzG9HTroIiyEtM7EBadjziyK5p+R iTQDhbq40UJrp+RAlJKQhZ1C3qDc3pJADleg16b76YsiCPj7KREH9MHKf8gTcSd9 6zobb2OSQHb1CNIsh/rjG8hdVm2FHr0ECDQFrLciWJWKM3jMmXs5+vqp05i+t7mc /XEF2DHR8tVnQtd5d6l2G+5Aw781hJ+vZ1EuE3MsaLsdxAnY3+iS2LT4dv6VuGyv VxIrbTv3qAKCF8XPyZltqvZjOwJH+kjWLwR1/i5XiWco1cwt+h+ZR9GAksS3PAne TeOiD2lTZqH4wQu6B1oJuXfox9M6/XhCmfVvR0Tk4VAV0nb9ZGvWb7YXO4OwVnqf vveKxEGTUrP3koI4GUWVuzMelngXCx/ayISjhqo/dTs7R+YagZV6Oy0FWUBaewGc zihiJpkb2/+psjluRkEhXHL6GTXzu4H+v6HjMX9m41OxjJwhKPzTMebzxY+hJu9w bJGCX3Fj6RDEk77urULs/+/NpytsWSiZYYpXNTUnLrY7RoBo81PEL1HucyUIYny7 /F1PtjooBAs3oILsHgWS =qT0L -----END PGP SIGNATURE-----