Hello, I just realized that I have a dns resolution problem with Docker, what I did was to put the dns directly in the document software stack, it works.
I’ve installed Documenso and DocuSeal. If I don’t enter the dns 1.1.1.1 in the stack, I don’t get the e-mail used to activate the account and I don’t get the account connection alarms.
I’m on a Synology DS923+.
Is there a way to configure DNS automatically?
I can’t figure out why I’m having this problem.
Should I do this?
Synology DSM 7.2+ uses systemd-resolved, which can cause conflicts. Solution:
Open the NAS in SSH:
bashsudo vi /etc/docker/daemon.json
Add this configuration :
json{
“dns“: [”8.8.8.8”, ‘8.8.4.4’, ‘1.1.1.1’]
}
Restart Docker :
bashsudo systemctl restart docker
Testing from the container,
To test DNS resolution :
bash# In Container → Container Console
nslookup smtp.gmail.com
ping smtp.gmail.com
How can I get help?
As far as I know, Synology have their own Docker implementation, so you should try asking them too. Wheverer you ask about the issue, I recommend formatting your post prpoerly because otherwise it will be hard to read it. Here is our formatting guide to use code blocks
Unfotunately I don’t fully understand your issue description. even before the shared code snippets. Can you rephrase that? The best if you demonstrate it with commands and the outputs of the commands. Just make sure you use code blocks as the guide describes.
Since when did Synology start to use the default path for the daemon.json?
The file should be located in /var/packages/ContainerManager/etc/dockerd.json
You can see it passed as argument if you execute ps aux | grep dockerd.
And as @rimelek already stated: the Synology Container Manager is bundled with Synology’s modified docker distribution.