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

DNS Updates #11

Open
BrianLakstins opened this issue Dec 13, 2022 · 2 comments
Open

DNS Updates #11

BrianLakstins opened this issue Dec 13, 2022 · 2 comments

Comments

@BrianLakstins
Copy link

BrianLakstins commented Dec 13, 2022

When the second AD server I added updated DNS, it was updating with the internal ip address of the docker container.

I updated /var/lib/samba/private/dns_update_list. I replaced "$IP" with the host ip address I am binding the all the ports to (like 192.168.1.2) which is also in the environment variable ${HOSTIP}.

I tried using ${HOSTIP} in the dns_update_list configuration file, but it did not resolve.

It works with the hard coding for me, but it might be good to add the replacement process to the init.sh script in some way.

@burnbabyburn
Copy link
Owner

burnbabyburn commented Feb 2, 2023

are you running the alpine or ubuntu version?
AFAIR in debian the HOSTIP stanca was valid. alpine does seem to have that
The alpine version is missing the --ipaddress option also. So some hacks may be needed for DNS in alpine

@BrianLakstins
Copy link
Author

debian version. This is my code repository that I'm using for my images: https://github.com/BrianLakstins/docker-samba-dc

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

No branches or pull requests

2 participants