InternetDomainName and publicsuffix list

Viewed 1475

Which version of public suffix list(https://publicsuffix.org/) does Guava 21 InternetDomainName API use?

Parsing keyupgrade.spaceforupdate.download results in

scala> InternetDomainName.from("keyupgrade.spaceforupdate.download").topPrivateDomain
java.lang.IllegalStateException: Not under a public suffix: keyupgrade.spaceforupdate.download
  at com.google.common.base.Preconditions.checkState(Preconditions.java:176)
  at com.google.common.net.InternetDomainName.topPrivateDomain(InternetDomainName.java:445)
  ... 50 elided

But .download is a valid public suffix as per https://publicsuffix.org/list/public_suffix_list.dat. I am thinking Guava 21 is using an older version of publicsuffix list. Is there a way to update it? Thanks!

3 Answers
Related