diff --git a/Dockerfile b/Dockerfile
index f857419497157368ba2ce59c75686c936bd51fa0..5c91c25150438878c712e72d9c645769acc9b303 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -68,7 +68,5 @@ COPY --chown=root:nginx . /html
 WORKDIR /html
 EXPOSE 80
 
-# Removing ndots to resolve issues resolving hosts
-CMD echo -e "/ndots:5\nd\nw\nq" | ed /etc/resolv.conf &&\
-    crond -L /dev/stdout && \
+CMD crond -L /dev/stdout && \
     php-fpm7