[Samba] Samba Active Directory Domain Controller

L.P.H. van Belle belle at bazuin.nl
Mon May 8 14:50:55 UTC 2017


>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
> 
> 




More information about the samba mailing list