Home

Weird networking issue, seeking help

$$20785
https://piefed.ca/u/iamthetot posted on Mar 31, 2026 02:37

I run CachyOS on my desktop. I host Homepage for myself on a home server. This is reached at home.mydomain.tld. Pihole on my local network catches that request and points it at my local nginx, which reverse proxies me to the homepage.

Now, I set this all up a while back and it all worked totally fine for several weeks. Then, about a week or so ago, for some reason almost every, but not every time I boot my PC, home.mydomain.tld gives me a “cannot be reached” error in my browser… until I run systemctl restart NetworkManager and then it works completely normally.

Can anyone help me troubleshoot why oh why that would suddenly be a thing? Does anyone have suggestions of a way I can troubleshoot a permanent fix to this so that I don’t have to restart NetworkManager almost every boot?

https://piefed.ca/c/linux/p/629526/weird-networking-issue-seeking-help
Reply
$$20790
https://lemmy.world/u/chromeleon posted on Mar 31, 2026 02:58
In reply to: https://piefed.ca/c/linux/p/629526/weird-networking-issue-seeking-help

I’m pretty clueless, but perhaps try putting a short time delay on the NetworkManager service startup.

https://lemmy.world/comment/22960191
Reply
$$20803
https://sopuli.xyz/u/Pogogunner posted on Mar 31, 2026 03:33
In reply to: https://piefed.ca/c/linux/p/629526/weird-networking-issue-seeking-help

The output of dmseg or journalctl might show you an error message related to networkmanager to give you some clues

https://sopuli.xyz/comment/22725413
Reply
$$20804
https://lemmy.zip/u/frongt posted on Mar 31, 2026 03:53
In reply to: https://piefed.ca/c/linux/p/629526/weird-networking-issue-seeking-help

Ugh, this is the bane of my existence. For decades, this worked reliably. Then they introduced networkmanager and systemd-resolved, and everything went out the window and now it’s impossible to trace behavior.

I would verify your network and dns settings. One or both of those things I mentioned are probably interfering in resolution.

https://lemmy.zip/comment/25599702
Reply
$$20805
https://discuss.tchncs.de/u/Petter1 posted on Mar 31, 2026 03:58
In reply to: https://piefed.ca/c/linux/p/629526/weird-networking-issue-seeking-help

Do you see the dns calls in pi-hole when it is not reaching its destination?

https://discuss.tchncs.de/comment/24878629
Reply
$$20832
https://programming.dev/u/Scoopta posted on Mar 31, 2026 06:46
In reply to: https://piefed.ca/c/linux/p/629526/weird-networking-issue-seeking-help

Is your pihole server the only DNS server set? Either on your PC or router? Is network manager sometimes using a different nameserver?

https://programming.dev/comment/23027933
Reply
$$20852
https://piefed.social/u/MangoPenguin posted on Mar 31, 2026 12:00
In reply to: https://piefed.ca/c/linux/p/629526/weird-networking-issue-seeking-help

So I would start with checking if the request is reaching PiHole.

Next time it breaks, before restarting networkmanager, go check the pihole requests log and see if your DNS queries are even showing up there.

If they are, what does pihole show it’s returning for the query, is it the correct IP?

If that’s working properly then I would check if you can ping the server by IP directly, make sure that connection is working.

https://piefed.social/comment/10763731
Reply
$$20853
https://piefed.ca/u/iamthetot posted on Mar 31, 2026 12:15
In reply to: https://programming.dev/comment/23027933

How would I check that?

https://piefed.ca/comment/4083031
Reply
$$20854
https://piefed.ca/u/iamthetot posted on Mar 31, 2026 12:16
In reply to: https://piefed.social/comment/10763731

I will check this next time it happens (I’m very confident that will be later today lol)

Out of curiosity, can you think of a reason why a problem with Pihole would be fixed by restarting my NetworkManager? I was certain the problem had to be on my pc.

https://piefed.ca/comment/4083054
Reply
$$20855
https://piefed.ca/u/iamthetot posted on Mar 31, 2026 12:17
In reply to: https://sopuli.xyz/comment/22725413

Thank you for the suggestion, I will check these next time.

https://piefed.ca/comment/4083065
Reply
$$20908
https://programming.dev/u/Scoopta posted on Mar 31, 2026 18:52
In reply to: https://piefed.ca/comment/4083031

nmcli device show eth0

Or replace eth0 with whatever interface it is. Will give you a list of all network parameters including the DNS servers. There ideally should only be one, your pihole

https://programming.dev/comment/23038059
Reply
$$20923
https://lemmy.dbzer0.com/u/Flyswat posted on Mar 31, 2026 19:26
In reply to: https://piefed.ca/comment/4083031

resolvectl status

https://lemmy.dbzer0.com/comment/25277376
Reply
$$20932
https://piefed.social/u/MangoPenguin posted on Mar 31, 2026 19:47
In reply to: https://piefed.ca/comment/4083054

I don’t think it’s a problem with PiHole realistically, it sounds more like for some reason your DNS requests are getting to PiHole.

https://piefed.social/comment/10769830
Reply
$$20941
https://lemmy.world/u/ligma_centauri posted on Mar 31, 2026 20:02
In reply to: https://piefed.ca/c/linux/p/629526/weird-networking-issue-seeking-help

Do you have multiple NIC? I sporadically run into issues where traffic will try to route itself via a secondary network which has limited external access and it is resolved in a similar manner, by bringing down all networks, then re-starting them in a specific order.

Realistically I should probably define some static routes, but it works automatically 99% of the time so I never bother.

If this sounds like a possible cause, check your routes while in failed, and functional states, and set static routes as needed to resolve.

https://lemmy.world/comment/22973721
Reply
$$21046
https://piefed.ca/u/iamthetot posted on Mar 31, 2026 23:57
In reply to: https://programming.dev/comment/23038059

There is only one IP4 DNS address, however there are two IP6 DNS addresses for my ethernet interface. However, I also notice that the GENERAL.CON-PATH ends in 2, whereas I have another interface lo which ends in 1. Would that be a clue of anything?

https://piefed.ca/comment/4091875
Reply
$$21047
https://piefed.ca/u/iamthetot posted on Apr 1, 2026 00:04
In reply to: https://piefed.social/comment/10769830

Can confirm, when this happens my requests from desktop are not getting to pi-hole. Works from my phone without issue.

https://piefed.ca/comment/4091951
Reply
$$21216
https://piefed.social/u/MangoPenguin posted on Apr 1, 2026 11:57
In reply to: https://piefed.ca/comment/4091951

Nice, narrowing it down!

Next thing I would check is your configured DNS servers on the desktop, it needs to have only the pihole IP, if it has any other servers configured that is likely the issue.

Also worth pinging the pihole IP next time it’s not working, to check if it’s actually a networking issue instead of a DNS issue.

https://piefed.social/comment/10778354
Reply
$$21291
https://programming.dev/u/Scoopta posted on Apr 1, 2026 17:07
In reply to: https://piefed.ca/comment/4091875

It’s normal for the loopback con path to end in 1, each con path is unique for each interface. My guess is that if your pihole sometimes works, the IPv4 server is your pihole and the IPv6 servers are ISP provided (especially if there are 2), so they work for the internet but not your internal network. Ideally you would set your pihole’s IPv6 address as your IPv6 DNS as well. Failing that setting the IPv6 mode to “Automatic, addresses only” will make it not used for DNS

https://programming.dev/comment/23055959
Reply