How to load all the aliases of a domain in Drupal 8?

I'm using the domain and domain_alias modules in Drupal 8.

I need to load all the aliases of a given domain.

I have tried the following without success:

$ aliases =  Drupal :: service (& # 39; entity_type.manager & # 39;) -> getStorage (& # 39; domain_alias & # 39;) -> loadByHostname (& # 39; my.domain.com & # 39;) ;

$ aliases =  Drupal :: entityTypeManager () -> getStorage (& # 39; domain_alias & # 39;) -> loadByProperties (['hostname' => 'my.domain.com']);