@Override
    public Set<String> resolveAll(String name) {
        if (records.containsKey(name)) {
            return records.get(name);
        }
        if (mockAnyLookup) {
            records.computeIfAbsent(name, (k) -> new HashSet<>())
                   .add(randomIpAddress());
            return records.get(name);
        }
        throw new RuntimeException(new UnknownHostException("Could not resolve: " + name));
    }
When true, only records added with {@link MockNameResolver#addReverseRecord(String, String)} are considered by
{@link MockNameResolver#resolveHostname(String)}. Otherwise the latter returns the IP address by reversing the lookup
implicitly.
node-repository/src/main/java/com/yahoo/vespa/hosted/provision/testutils/MockNameResolver.java