owncloud / qnap

App for qnap - license defines number of allowed users - this app disables those over the limit
GNU General Public License v2.0
3 stars 3 forks source link

[QA] DNS resolver does not work in the onwcloud container #29

Open jnweiger opened 3 years ago

jnweiger commented 3 years ago

Seen with ownCloud for QNAP 10.8.0 RC1 from ownCloud_10.8.0_arm-x41.qpkg

Inside the qnap host, DNS works as expected, but inside the owncloud docker container, it does not:

ssh admin@10.90.4.178
[~] # ping -c 3 marketplace.owncloud.com
PING pearl.owncloud.com (5.9.68.237): 56 data bytes
64 bytes from 5.9.68.237: icmp_seq=0 ttl=58 time=7.3 ms
64 bytes from 5.9.68.237: icmp_seq=1 ttl=58 time=6.9 ms
64 bytes from 5.9.68.237: icmp_seq=2 ttl=58 time=7.1 ms

[~] # system-docker exec -ti owncloud_owncloud_1 bash
root@9ad7cdb5b5e6: /var/www/owncloud # ping -c 3 marketplace.owncloud.com
ping: marketplace.owncloud.com: Temporary failure in name resolution

root@9ad7cdb5b5e6: /var/www/owncloud # cat /etc/resolv.conf 
nameserver 127.0.0.11
options ndots:0

root@9ad7cdb5b5e6: /var/www/owncloud # echo 'nameserver 1.1.1.1' >> /etc/resolv.conf 
root@9ad7cdb5b5e6: /var/www/owncloud # ping -c 3 marketplace.owncloud.com
PING pearl.owncloud.com (5.9.68.237) 56(84) bytes of data.
64 bytes from pearl.owncloud.com (5.9.68.237): icmp_seq=1 ttl=57 time=7.29 ms
64 bytes from pearl.owncloud.com (5.9.68.237): icmp_seq=2 ttl=57 time=7.05 ms
64 bytes from pearl.owncloud.com (5.9.68.237): icmp_seq=3 ttl=57 time=7.35 ms

Workaround as shown above: put 1.1.1.1 into /etc/resolv.conf

This issue prevents using a hostname as a mail relay. must use IP address. This issue prevents us from installing apps, as the DNS name marketplace.owncloud.com is hardcoded.

image

wkloucek commented 3 years ago

In the meantime there was a 2.4.0.2316 release of Container Station (released after QA testing), but the DNS problem still persists, even if I got it working directly after the upgrade. After a newstart it was not working anymore...