-
-
Notifications
You must be signed in to change notification settings - Fork 655
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
[Bug]: error, "No Host DNS record found. " even after adding folder name in /etc/hosts/ #1019
Comments
I've had similar problems with Nginx, but the reason was because I used several versions of PHP, which is not your case. Are you having the same problem using Apache on Devilbox? And did you use the |
I don't remember if I ran the code after deleting or before deleting the folder. Also, I am very much new to the docker so I don't recall if I have even done so but after I deleted the folder, I have again cloned it from github and again tried running the script that I have made and yet I faced the same error. I am sharing my devilbox start and stop script. start-devilbox.sh:
And this is my stop script stop-devilbox.sh
UPDATE: I have ran your command (I havent start the devilbox yet )and all I am getting is :No Stopped Containers. |
Try change the server in the
Save the Create your directory Go back to the
|
I did as you said, including stopping apache2 server and MySQL server from the system by sudo systemctl stop apache2 and sudo systemctl stop mysql, also i have a symlink of htdocs inside hi folder, yet, I am facing the same issue. For further ref, here is my etc/hosts file now.
Also I have created a symlink of htdocs inside hi folder which might shows using -l in ls command:
yet the issue still remains. |
Have you already looked into this bug?
(Optional) Error message
No Host DNS record found. Add the following to /etc/hosts: 127.0.0.1 hi.local
What went wrong?
I have inserted
127.0.0.1 hi.local
inside /etc/hosts/ by sudo nano in terminal, but It still shows up that no DNS record foundExpected behaviour
I expect that it should show up the folder name.
How can we reproduce the bug?
I had two or three projects and I deleted them. After that, i made changes in /etc/hosts by removing the directories name. Then I saw that when i created that folder, and after editing it in /etc/hosts/, it's not getting updated.
Host Operating System
Linux
Host Platform (amd64, arm64, other)
amd64
(Linux only) Is SELinux enabled?
I don't know
Docker version
Docker version 24.0.5, build 24.0.5-0ubuntu1~22.04.1
Docker Compose version
docker-compose version 1.29.2, build unknown
Devilbox version
Latest
Have you removed stopped containers before starting?
Yes
Have you pulled latest Docker images before starting?
No
Devilbox start command
I have wrote a script file. : https://pastebin.com/mmLqsZpE
Config: .env file
Config: docker-compose.override.yml
No response
Config: ./check-config.sh
Log: docker-compose logs
(Optional) Additional information
No response
The text was updated successfully, but these errors were encountered: