docker-tools icon indicating copy to clipboard operation
docker-tools copied to clipboard

samba-dc does not set a dns forwarder

Open dafzor opened this issue 3 years ago • 3 comments

DNS is very important for active directory.

samba-dc should have an additional environment variable to set DNS forwarder making it easier to USE it as a main DNS without having to resort to 0globals.conf.

dafzor avatar Aug 23 '20 18:08 dafzor

Feature is added, pull the image instantlinux/samba-dc:4.16.8-r0 to pick up this capability.

instantlinux avatar Jan 25 '23 17:01 instantlinux

I think this maybe isn't working correctly? My dns forwarding isn't working and if I look at my smb.conf I see this:

# Generated by entrypoint.sh. Add customizations under /etc/samba/conf.d.
#  DO NOT EDIT THIS FILE.

[global]
        netbios name = DC1
        realm = 4AMLUNCH.NET
        server role = active directory domain controller
        workgroup = 4AMLUNCH

        add machine script = /usr/sbin/adduser -D -H -G users -s /bin/false %u
        allow dns updates = secure
        bind interfaces only = yes
        domain logons = yes
        domain master = no
        interfaces = internal
        log level = 1
        winbind refresh tickets = Yes
        winbind use default domain = yes
{% if DNS_FORWARDER %}
    dns forwarder = {{ DNS_FORWARDER }}
{%  endif %}
include = /etc/samba/conf.d/netlogon.conf
include = /etc/samba/conf.d/sysvol.conf

Shouldn't it have parsed that as part of the template and put the actual values in there?

bhechinger avatar Feb 16 '23 13:02 bhechinger

Oh, I found #106 never mind. :-D

bhechinger avatar Feb 16 '23 14:02 bhechinger