diff --git a/scripts/test-installation.pl b/scripts/test-installation.pl
index 75549f078e..6ac4da216f 100755
--- a/scripts/test-installation.pl
+++ b/scripts/test-installation.pl
@@ -122,6 +122,8 @@ while (<SOVERSIONS>) {
       "nss_test1",
       # is not provided by glibc
       "gcc_s",
+      # are dummy SONAMEs for compatibility, unavailable for -l
+      "nss_dns", "nss_files",
     );
     next if (grep { $_ eq $name } @skip);
     # libmvec if it wasn't built
