Maybe it's not a real world problem but can't this in theory also get false positives if the `current_hostname` is just a prefix for an entry?

What are we actually trying to match? Can the `current_hostname` be just a hostname (in some Vagrant boxes) but matched entry an fqdn?