You could try group-object I've used it in the past to collate large sets of data. Never 30,000 that's just gonna take a long time to process!
$domains = Import-Csv ./some.csv
Import-CVS ./ReallyBig.csv |
Group-Object Name |
Where-Object {$domains -like $_.Name} |
Select-Object -ExpandProperty Group
You may want to look into just ingesting the data into a simple database.
~Glenn