Accessing active cached PublicSuffix version from IDomainParser
Hi there 👋
I'm using the ASP.NET integration shown in the README. In my controller, I can access IDomainParser and perform queries successfully. However, I cannot find a way to get the currently active cached Public Suffix version through IDomainParser or something else.
At the moment, the version is shown as: VERSION: 2025-10-16_17-43-33_UTC
I would like to access this version information alongside DomainInfo. Is there a way to do this?
I don't know where you found the version number? I'll just check against the last commit on GitHub.
https://github.com/nager/Nager.PublicSuffixService/blob/main/src/Nager.PublicSuffixService/Program.cs
Hi, The version information was from the public_suffix_list.dat file itself, not from the library. I didn’t mean to imply that the library provides version information, but I think I didn’t express it clearly, so it might have come across that way, sorry about that. It seems I now have the answer to my question, "Is there a way to do this?" the library currently doesn’t provide such information. In that case, may I open a feature request for this functionality?
Okay, there is a version note in the list on the official website. When the same list is retrieved from GitHub, this note is not there.
My suggestion in this case would be to read out the version yourself in the meantime. We can leave the issue open and wait for further requests.
- https://raw.githubusercontent.com/publicsuffix/list/refs/heads/main/public_suffix_list.dat
- https://publicsuffix.org/list/public_suffix_list.dat
When the same list is retrieved from GitHub, this note is not there.
// Please pull this list from, and only from https://publicsuffix.org/list/public_suffix_list.dat,
// rather than any other VCS sites. Pulling from any other URL is not guaranteed to be supported.
Perhaps that's why it's better to stick with the file at the suggested URL.
Anyway, I’ll take a look myself and see what I can do. Thanks!