>It seems that you cannot create a new /etc/resolv.conf ..Did you remove resolvconf with apt-get remove --purge resolvconf? That should have restored the static resolv.conf back. Or just make use of resolvconf, Debian/ubuntu : just correctly configure interfaces. /etc/network/interfaces auto eth0 allow-hotplug eth0 iface eth0 inet static address 10.0.0.11 netmask 255.255.255.0 gateway 10.0.0.254 dns-search your.domain.tld dns-nameservers 10.0.0.1 10.0.0.2 And your done. Ps. Do not add gateway of dns to an alias interface.. Greetz, Louis> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens > Rowland Penny via samba > Verzonden: maandag 8 mei 2017 16:35 > Aan: samba at lists.samba.org > Onderwerp: Re: [Samba] Samba Active Directory Domain Controller > > On Mon, 8 May 2017 09:42:34 -0400 > lingpanda101 via samba <samba at lists.samba.org> wrote: > > > > > Verify resolv.conf is confiigured correctly. From the Wiki again. > > > > /Disable tools, such as resolvconf, that automatically update your > > /etc/resolv.conf DNS resolver configuration file. Active Directory > > (AD) DCs and domain members must use an DNS server that is able to > > resolve the AD DNS zones./ > > > > I can't recall where to configure the resov.conf on CentOS. Maybe > > someone else can chime in. I'm using Ubuntu Server. > > > > I recently setup a Samba server with a fixed IP and had > problems with resolv.conf being overwritten. I removed > resolvconf and that is where my problems really started. > > It seems that you cannot create a new /etc/resolv.conf (well, > I couldn't). I ended up recursively coping everything in /etc > to /etc1 I then created /etc1/resolv.conf and then copied > /etc1 over /etc. This worked and survived a reboot. I am sure > that there must be a better way to do this, but I couldn't > easily find one and I was just testing something. YMMV > > Rowland > > > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba > >
On Mon, 8 May 2017 16:50:55 +0200 "L.P.H. van Belle via samba" <samba at lists.samba.org> wrote:> >It seems that you cannot create a new /etc/resolv.conf .. > > Did you remove resolvconf with apt-get remove --purge resolvconf? > That should have restored the static resolv.conf back.Well no, I didn't, but then again this was on Centos 7.3, it wasn't anything to do with resolvconf, I couldn't create any new file in /etc. I just wanted to test something so, more out of desperation than anything, I tried the 'mkdir /etc1' trick and it worked. Rowland
Bob of Donelson Trophy
2017-May-08 16:36 UTC
[Samba] Samba Active Directory Domain Controller
On 2017-05-08 10:39, Rowland Penny via samba wrote:> On Mon, 8 May 2017 16:50:55 +0200 > "L.P.H. van Belle via samba" <samba at lists.samba.org> wrote: > > It seems that you cannot create a new /etc/resolv.conf .. > Did you remove resolvconf with apt-get remove --purge resolvconf? > That should have restored the static resolv.conf back.Well no, I didn't, but then again this was on Centos 7.3, it wasn't anything to do with resolvconf, I couldn't create any new file in /etc. I just wanted to test something so, more out of desperation than anything, I tried the 'mkdir /etc1' trick and it worked. Rowland You aamy or may not remember that I use Ubuntu server for my Samba DC's. Not much time but, I remember that users need to add "dns-nameservers" and "dns-search" (for local domain) parameters to the /etc/network/interfaces file and that populates the /etc/resolv.conf file properly. Tricky but documented somewhere on Ubuntu. (Yes, I know, not the Debian way but rather the Ubuntu way of doing this.) -- _______________________________ Bob Wooden of Donelson Trophy