Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

samba-dc does not set a dns forwarder #44

Open
dafzor opened this issue Aug 23, 2020 · 3 comments
Open

samba-dc does not set a dns forwarder #44

dafzor opened this issue Aug 23, 2020 · 3 comments

Comments

@dafzor
Copy link

dafzor commented Aug 23, 2020

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.

@instantlinux
Copy link
Owner

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

@bhechinger
Copy link
Contributor

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants