Hello guys: I need to know a strategy to identify which dns-backend are Samba4 DC using: BIND9 or Internal? Some time ago someone told me I can check this by verifying if exists the user 'dns-hostname'. But, what if this user has been deleted? Or, what's the situation if I need to get the dns-backend on a replication environment? On the other hand, How can I know if my server is running Samba4 AD? I mean I need to automate this process, so first I've to do is check if Samba4 AD is already installed. Thanks, ___________________________________________ Felipe_ González_Santiago Universidad_de_las_Ciencias_Informáticas Centro_de_Software_Libre La_Habana. CUBA "Remind yourself that you cannot fail at being yourself" Wayne Dyer The University of Informatics Sciences invites you to participate in the Scientific Conference UCIENCIA 2016, [extended] deadline: september 30th. Conferencia Científica UCIENCIA 2016, plazo de envío de trabajos hasta el 30 de septiembre. http://uciencia.eventos.uci.cu/
On Thu, 13 Oct 2016 08:35:46 -0400 (CDT) Felipe_G0NZÁLEZ_SANTIAG0 via samba <samba at lists.samba.org> wrote:> Hello guys: > I need to know a strategy to identify which dns-backend are Samba4 DC > using: BIND9 or Internal? Some time ago someone told me I can check > this by verifying if exists the user 'dns-hostname'. But, what if > this user has been deleted? Or, what's the situation if I need to get > the dns-backend on a replication environment? > > On the other hand, How can I know if my server is running Samba4 AD? > I mean I need to automate this process, so first I've to do is check > if Samba4 AD is already installed. >Well, if you are running Bind and have deleted 'dns-hostname', you are going to have problems, but if you check the 'server services' line in smb.conf, then if it isn't there, you are using the internal DNS server, or if it is there and has 'dns' in it, you are using the internal DNS server. If you have the line and it doesn't have 'dns' you are using Bind, or if the line consists of just '-dns', you are using Bind. Rowland
Hi Felipe, Am 13.10.2016 um 14:35 schrieb Felipe_G0NZÁLEZ_SANTIAG0 via samba:> I need to know a strategy to identify which dns-backend are > Samba4 DC using: BIND9 or Internal?Run : # netstat -taunp | grep ":53" If the port is used by the "samba" process, it's the internal DNS, if it's "named", then it's BIND.> Some time ago someone told me I can check this by verifying > if exists the user 'dns-hostname'. > But, what if this user has been deleted?BIND requires this account to access the directory. However, I'm not sure if we delete it if you switch from BIND9_DLZ to the internal DNS.> On the other hand, How can I know if my server is > running Samba4 AD?You want to know if a host acts as a Samba AD DC? - Check the process list. If there is a "samba" process running, it's an AD DC. If there are only smbd|nmbd|winbind, then it's a different mode. - Use "netstat" again. A DC uses different ports than a domain member, PDC, or standalone. See https://wiki.samba.org/index.php/Samba_AD_DC_Port_Usage Regards, Marc