Massive spam of DNS requests for my local domains

Suddenly m network stopped working and by analyzing the symptoms i quickly figuredout it was related to the DNS. Analyzing my router i found out a spam of DNS requests coming out from Homarr, pointing to my local domains (of my applications)
Solution:
Ok, then let's just keep tracking this in the GitHub issue as we discussed.
Jump to solution
85 Replies
Cakey Bot
Cakey Bot4mo ago
Thank you for submitting a support request. Depending on the volume of requests, our team should get in contact with you shortly.
⚠️ Please include the following details in your post or we may reject your request without further comment: - Log (See https://homarr.dev/docs/community/faq#how-do-i-open-the-console--log) - Operating system (Unraid, TrueNAS, Ubuntu, ...) - Exact Homarr version (eg. 0.15.0, not latest) - Configuration (eg. docker-compose, screenshot or similar. Use ``your-text`` to format) - Other relevant information (eg. your devices, your browser, ...)
Frequently Asked Questions | Homarr documentation
Can I install Homarr on a Raspberry Pi?
Alea Iacta Est
Alea Iacta EstOP4mo ago
docker logs for homarr
Manicraft1001
Manicraft10014mo ago
As requested in #🦞・general , please post logs, screenshot of the DNS TTL and other relevant info Also, are you using a public DNS or a local DNS?
Alea Iacta Est
Alea Iacta EstOP4mo ago
is the file fine or you want pastebin? public, cloudflare 1.1.1.1
Manicraft1001
Manicraft10014mo ago
Pastebin, files cannot be opened on mobile and are suspectable to malicious code execution
Alea Iacta Est
Alea Iacta EstOP4mo ago
Logs posted. OS: proxmox debian 12> debian 12 VM> OMV> docker>homarr. Homarr version 1.20.0 DNS request and reply captured with wireshark have a TTL of 64 - 63
Alea Iacta Est
Alea Iacta EstOP4mo ago
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Manicraft1001
Manicraft10014mo ago
Can you measure how many DNS packets you see per minute? It is normal that Homarr will perform multiple HTTP requests per second but DNS will be cached if TTL is high enough.
Alea Iacta Est
Alea Iacta EstOP4mo ago
i do not have a counter, i am using my eye and i can see homarr makes a request for each subdomain i have, about one request every 2 seconds reading the time too, ofc
Manicraft1001
Manicraft10014mo ago
One request per subdomain per 2 seconds? Or one request per two seconds but different subdomain? Have you tried increasing TTL to a higher value?
Manicraft1001
Manicraft10014mo ago
Unless you have a specific use case, it's also not worth it to choose low TTLs: https://blog.apnic.net/2019/11/12/stop-using-ridiculously-low-dns-ttls/
APNIC Blog
Stop using ridiculously low DNS TTLs | APNIC Blog
Guest Post: Why does half the Internet use a TTL of 1 minute or less?
Alea Iacta Est
Alea Iacta EstOP4mo ago
one request per subdomain every 2 seconds-ish so i have got like 10 apps, so 10 requests every 2 seconds
Manicraft1001
Manicraft10014mo ago
When checking the DNS packets, did you check those which were sent by Homarr or by your client?
Alea Iacta Est
Alea Iacta EstOP4mo ago
i sniff the packets directly from the router, i see the packets sent and received from the IP of the VM and filtered by DNS
Manicraft1001
Manicraft10014mo ago
How do you run Homarr inside the VM? Any DNS client / cache in the VM?
Alea Iacta Est
Alea Iacta EstOP4mo ago
OMV>docker managed with portainer no DNS client, no custom cache just basic network configuration with static ip and cloudflare dns
Manicraft1001
Manicraft10014mo ago
And just to confirm; you're not mixing up the TCP requests for the HTTP call with the DNS packets?
Alea Iacta Est
Alea Iacta EstOP4mo ago
i have wireshark filtered for DNS, i dont see TCP and HTTP packets
Alea Iacta Est
Alea Iacta EstOP4mo ago
i was just forced to kill homarr now
Manicraft1001
Manicraft10014mo ago
Thanks for confirming. I can't observe the same behaviour on any of my setups nor my local development machine. Can you post on the GitHub issue https://github.com/homarr-labs/homarr/issues/1141 and post all details and reproduction steps? I suspect that you have a different network config causing caching to not work.
GitHub
bug: Request are not cached resulting in high network usage · Issu...
Provide environment information any Describe the bug Some queries are not cached but should. This results in an insane amount of queries (This is a 7h span). This is because the media information f...
Alea Iacta Est
Alea Iacta EstOP4mo ago
the network stopped working again
Manicraft1001
Manicraft10014mo ago
Even with thousands of requests, your network shouldn't just "stop". What router are you using?
Alea Iacta Est
Alea Iacta EstOP4mo ago
well not exactly stop, but being extremely unresponsive on the dns requests like discord doesnt load images, not even profile pictures as example
Manicraft1001
Manicraft10014mo ago
Ok, that might be due to throttling from your router or Cloudflare Can you post onto the above linked issue then? We do not track bugs in Discord.
Alea Iacta Est
Alea Iacta EstOP4mo ago
on your link? can you reopen the issue? or i just make new?
Manicraft1001
Manicraft10014mo ago
On the link, yes. I will reopen as soon as you post. The issue is not locked and you should be able to comment.
Alea Iacta Est
Alea Iacta EstOP4mo ago
commented, tried to wrap everything, not sure if i missed something Hey, any update on this? Cus right now I really can't have the container running, it's been offline since that day well something whatever happened today i launched the container again to see if the issue was randomly fixed and all my configuration is completely wiped
Manicraft1001
Manicraft10014mo ago
Please post your docker compose / run config Or do you run from source?
Alea Iacta Est
Alea Iacta EstOP4mo ago
docker portainer, i just booted the container again
Manicraft1001
Manicraft10014mo ago
Please post the compose.
Alea Iacta Est
Alea Iacta EstOP4mo ago
is the secret encrypt key safe to show?
Manicraft1001
Manicraft10014mo ago
No.
Alea Iacta Est
Alea Iacta EstOP4mo ago
version: '3'
#---------------------------------------------------------------------#
# Homarr - A simple, yet powerful dashboard for your server. #
#---------------------------------------------------------------------#
services:
homarr:
container_name: homarr
image: ghcr.io/homarr-labs/homarr:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock # Optional, only if you want docker integration
- /dockerconfig/homarr/configs:/app/data/configs
- ./dockerconfig/homarr/icons:/app/public/icons
- ./dockerconfig/homarr/data:/data
environment:
- SECRET_ENCRYPTION_KEY=

ports:
- '7575:7575'
version: '3'
#---------------------------------------------------------------------#
# Homarr - A simple, yet powerful dashboard for your server. #
#---------------------------------------------------------------------#
services:
homarr:
container_name: homarr
image: ghcr.io/homarr-labs/homarr:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock # Optional, only if you want docker integration
- /dockerconfig/homarr/configs:/app/data/configs
- ./dockerconfig/homarr/icons:/app/public/icons
- ./dockerconfig/homarr/data:/data
environment:
- SECRET_ENCRYPTION_KEY=

ports:
- '7575:7575'
Manicraft1001
Manicraft10014mo ago
You likely upgraded from 0.15.10 incorrectly. Please see https://homarr.dev/docs/getting-started/installation/docker#installation for instructions.
Docker | Homarr documentation
Docker is our recommended installation method for beginners and professionals.
Alea Iacta Est
Alea Iacta EstOP4mo ago
uh?
Manicraft1001
Manicraft10014mo ago
Migrate from 0.15.10+ to 1.0.0 | Homarr documentation
In this guide, we will show you how to migrate from Homarr 0.15.10+ to 1.0.0.
Alea Iacta Est
Alea Iacta EstOP4mo ago
when was that version released?
Manicraft1001
Manicraft10014mo ago
What version? 0.15.10? We released 1.0 in January this year. Latest is 1.21.0 at the moment.
Alea Iacta Est
Alea Iacta EstOP4mo ago
i did the upgrade
Manicraft1001
Manicraft10014mo ago
But incorrectly. Hence your data reset. See the link above for the correct compose 🙂
Alea Iacta Est
Alea Iacta EstOP4mo ago
how is it possible, it was working 4 days ago on 1.20 the container its been offline since then
Manicraft1001
Manicraft10014mo ago
Because the data is not persisted if you forget to mount directories. It worked, but the files were then lost when the container was destroyed.
Alea Iacta Est
Alea Iacta EstOP4mo ago
im missing a point no container was destroyed/created the container is the same, as it was 4 days ago
Manicraft1001
Manicraft10014mo ago
here you did.
Alea Iacta Est
Alea Iacta EstOP4mo ago
i did the upgrade on 1.0 release day, 4 months ago not 4 days ago thats whats confusing me i also "beta" tested one of the early 1.0 releases
Manicraft1001
Manicraft10014mo ago
- You ran 0.15.10 - You upgraded to 1.0 and did some changes - You started the container again (today i launched the container again to see if the issue was randomly fixed) and since you did not persist the directories, your changes were lost I assume it shows the onboarding process again, correct?
Alea Iacta Est
Alea Iacta EstOP4mo ago
yeah but it doesnt make sense because its not the first time i kill and start the container lol i did it that day i ran the dns issue and it was just fine (besides the dns issue) now all of sudden, its not pulling the config which i havent touched AFTER i did the upgrade, 5 months ago, and the config was also updated
Manicraft1001
Manicraft10014mo ago
Let's backtrack please. What are you seeing? Logs? Compose file? Timeline of what steps you took? How did you "start" or "stop"? And to be clear, it is expected that your container will eventually loose the data, if it's unmounted. That is not a Homarr issue and it is clearly documented in the migration guide and the installation documentation.
Alea Iacta Est
Alea Iacta EstOP4mo ago
So if we start from 1.0 day one, back in janaury, its when i upgraded from 0.15.10 to 1.0 followed both the guides you linked, everything worked perfectly i also remember some integrations werent working, you were aware of that, eventually got fixed with updates, all good 5 months after (4 days ago) i ran into that dns issue, troubleshooting and so on, Homarr was spamming dns requests so to fix the flood i stopped the container and came here opening this thread as you remember, then github and whatever SINCE that day the container has been stopped, never ran again NOW i am launching it again, and here i am, homarr is asking for bootstrap see where i am getting? i just stopped the container 4 days ago and launched it again now, config was untouched, actually everything is untouched left the same as it was 4 days ago
Manicraft1001
Manicraft10014mo ago
i stopped the container How did you "stop" it? If Portainer executes a docker compose down, that will delete the unmounted files, which would explain the behaviour you're describing.
Alea Iacta Est
Alea Iacta EstOP4mo ago
i am not sure how portainer interacts with it, but it has 2 commands stop and kill
Manicraft1001
Manicraft10014mo ago
Yes, I see what you mean. But in our guides we had for 1.0, we showed a different compose than what you have here. Your compose does not mount correctly and this caused your data loss. Sorry that you lost this data but it is not something Homarr can auto-detect.
Alea Iacta Est
Alea Iacta EstOP4mo ago
thats the thing i didnt lose any config i am in the config folder with WinSCP and the file is there, last edit 21/05/2025 default.json has everything in iit then the problem is portainer here
Manicraft1001
Manicraft10014mo ago
Well, obviously you did. Otherwise, Homarr wouldn't start over. The directory /app/data/configs and /app/public/icons are no longer in use in 1.0. And to be clear, default.json is from your old Homarr (0.15.10), not 1.0. So no, your data is no longer there. If your default.json has that date, it means that you ran 0.15.10 until 21.05.
Alea Iacta Est
Alea Iacta EstOP4mo ago
no my bad, i read the date wrong, its back in 2024 so what is the path of 1,0 config ./homarr/appdata?
Manicraft1001
Manicraft10014mo ago
Sorry, I don't mean to be offensive, but I've already told you multiple times. Check the docs. See https://homarr.dev/docs/getting-started/installation/docker#installation /appdata is what needs to be mounted. It doesn't matter to what directory or volume you mount to on your host!
Docker | Homarr documentation
Docker is our recommended installation method for beginners and professionals.
Alea Iacta Est
Alea Iacta EstOP4mo ago
i looked into it, that line is missing from my docker compose but then i cant understand how i was able to run (and update it) for 5 months without any issues
Manicraft1001
Manicraft10014mo ago
As mentioned as above, It runs without the mount. It will just not persist the data. This is normal and expected.
Alea Iacta Est
Alea Iacta EstOP4mo ago
anyway if /appdata mount point is missing from the compose, does the image creates it by default somewhere?
Manicraft1001
Manicraft10014mo ago
Docker might have auto-created an anonymous volume somewhere. I can't help you with finding that though. You could check the currently available volumes in the Docker engine. If you can't find it, no - then your data would be gone
Alea Iacta Est
Alea Iacta EstOP4mo ago
is it a requirement that the appdata path is flagged as hidden?
Manicraft1001
Manicraft10014mo ago
Flagged as hidden? I don't understand your question.
Alea Iacta Est
Alea Iacta EstOP4mo ago
./homarr/appdata/ doesnt the . stands for hidden?
Meierschlumpf
Meierschlumpf4mo ago
No it's a relative path...
Manicraft1001
Manicraft10014mo ago
NetworkChuck
YouTube
Docker Compose will BLOW your MIND!! (a tutorial)
We don’t live in Docker containers, keep yourself safe with Bitdefender Premium Security: https://bit.ly/BitdefenderNC (59% discount on a 1 year sub) Stop spinning up Docker Containers like your grandparents, use Docker Compose instead! No more worrying about typing a million commands to get your whole Docker network and Containers running,...
Alea Iacta Est
Alea Iacta EstOP4mo ago
anyway i cant import the old default.json i have right? i have to start from 0 again the bad config i have might also be the reason i had the dns issue in first place
Meierschlumpf
Meierschlumpf4mo ago
You can spin up an oldmarr (0.15.10) instance and add it in your configs directory there
Alea Iacta Est
Alea Iacta EstOP4mo ago
true that would be smart
Meierschlumpf
Meierschlumpf4mo ago
Then you can proceed with the export in the manage / tools / migrate to 1.0 page and export your board & stuff
Alea Iacta Est
Alea Iacta EstOP4mo ago
where can i find the old image link?
Meierschlumpf
Meierschlumpf4mo ago
services:
homarr:
container_name: homarr
image: ghcr.io/ajnart/homarr:latest
restart: unless-stopped
volumes:
- ./homarr/configs:/app/data/configs
- ./homarr/icons:/app/public/icons
- ./homarr/data:/data
ports:
- '7577:7575'
services:
homarr:
container_name: homarr
image: ghcr.io/ajnart/homarr:latest
restart: unless-stopped
volumes:
- ./homarr/configs:/app/data/configs
- ./homarr/icons:/app/public/icons
- ./homarr/data:/data
ports:
- '7577:7575'
Alea Iacta Est
Alea Iacta EstOP4mo ago
thanks a lot
Meierschlumpf
Meierschlumpf4mo ago
There is no documentation anymore, but I've went to the docs repository and viewed the old compose there, if something does not work, let me know
Alea Iacta Est
Alea Iacta EstOP4mo ago
should work, i remember very similarity with the config i had just another question the default.json does not contains informations about the admin accounts right? i am being asked to create new yep exactly, i have everything now
Meierschlumpf
Meierschlumpf4mo ago
Yes, default.json only contains the board, but you may have an existing db.sqlite file also from the old instance on your data mount. But you can of course also just recreate the user 😉
Alea Iacta Est
Alea Iacta EstOP4mo ago
yeah i did, the passwords requirements were also different going to migrate again this old version image was a nice save into a corner, gg got homarr back to work but the dns issue persist infinite spam of dns requests 😦
Manicraft1001
Manicraft10014mo ago
Glad you got it back. Is the TTL still above 0 and Homarr still shows the same issue?
Alea Iacta Est
Alea Iacta EstOP4mo ago
yes 64 and yes, flood of dns requests over and over
Solution
Manicraft1001
Manicraft10014mo ago
Ok, then let's just keep tracking this in the GitHub issue as we discussed.
Manicraft1001
Manicraft10014mo ago
Can I mark this as resolved?
Alea Iacta Est
Alea Iacta EstOP4mo ago
discord thread yeah ill wait for github updates
Manicraft1001
Manicraft10014mo ago
Yes, of course. Thank you!
ThowZzy
ThowZzy4mo ago
+1
Manicraft1001
Manicraft10014mo ago
Please post on GitHub too with as much detail as possible

Did you find this page helpful?