I’d like to use the host resource is_resolvable matcher on a host in my local domain:
describe host("foo.mydomain") do
it { should be_resolvable }
end
I can see the host and resolve it’s IP address from the command line (OS/X) with “host”:
$ host -t A foo.mydomain
foo.mydomain has address 192.168.1.117
However the matcher always fails. I suspect I’ve misunderstood something about how inspec finds local utilities like ‘host’ or ‘dig’ to use. Or am I going about this in the wrong way?
Any advice much appreciated,
Stu