CyferShepard / Jellystat

Jellystat is a free and open source Statistics App for Jellyfin
MIT License
1.02k stars 32 forks source link

DNS spamming #101

Open wioo opened 12 months ago

wioo commented 12 months ago

Hi there. Looks like jellystat is spamming my dns server (pihole) with jellyfin url name. Then it's rate-limited (actually my router's ip is rate-limited so all my docker services have problems) and stops working.

CyferShepard commented 12 months ago

Hey @wioo , Il look into caching the IP of your jellyfin instance, this seems to be due to the activity monitor continually calling the Jellyfin API which results in a DNS query to resolve it. Once it's cached you shouldn't have this issue

CyferShepard commented 11 months ago

DNS Caching to fix DNS spam issue #101

gomeology commented 11 months ago

This would be awesome. I currently have 87275 request for a 3ish day period.

gomeology commented 11 months ago

temp fix go into the container and echo "ip url_of_jellyfin" >> /etc/hosts

pretty sure this will not persists on container update/reboot.

gomeology commented 11 months ago

found a better solution... if using docker compose add

image: ....
extra_hosts:
  - "jellyfin.url.com:172.16.0.5"   # "domain:ip"

it will add it directly to the /etc/hosts file no need for cache