YunoHost / issues

General issue tracker for the YunoHost project
72 stars 8 forks source link

Domain reminder does not work in certain cases (registered 2LD where only 3LD are used; registered 3LD) #2346

Open silverhook opened 7 months ago

silverhook commented 7 months ago

Describe the bug

/yunohost/admin/#/diagnosis provides a really nice domain name expiry reminder, but I ran into two occasions where it does not work, but it should:

Context

To reproduce

  1. register
    • a 3LD (e.g. name.surname.name)
    • a 2LD (e.g. example.org)
  2. add some domains to YunoHost, e.g.
    • name.surname.name
    • landing.example.org
    • bla.example.org
    • jabber.example.org
  3. open /yunohost/admin/#/diagnosis in the browser or run yunohost diagnosis run in CLI

Expected behavior

I would expect YunoHost Diagnosis to notify me of the soon to expire (I would expect 30 days in advance) domains.

Logs

Let me know what would be useful, so I can paste the redacted logs.

zamentur commented 7 months ago

This feature to find the expiry date is not totally accurate cause it's based on the whois and some tld (eg .de) doesn't provide the expiry date at all. I don't know if it's the case with the .at.

About third level domain in .name this usecase has not been considered. We currently use the public suffix list to deduce if it's the domain registered or a subdomain of it... https://github.com/YunoHost/yunohost/blob/734e9102418faf5ddeba1338443c93a919f1ca2b/src/diagnosers/12-dnsrecords.py#L66

So i guess the solution should be to display info if yunohost can't manage the expiry date for the tld in use. So if it's a .name, or .de, or others tld doesn't providing this info in the whois...

silverhook commented 7 months ago

Better info on its limitations might be useful, yes.