I want to preface this by saying that I really don't know anything about Lemmy, but I can see where subscriptions are managed by the subscribers servers in a federated situation: the community's server might not even know who is subscribed to it since the subscribers server might be responsible for pulling data.
But any individual subscribers server would know about other users on that server that are subscribed to that community
I use cloud flare DNS and it has support for dynamic IPs, my current setup is through a plug-in in my PFSense router