1 Feature: See if hostip can resolve names
3 Resolve names with the hostip utility.
5 Scenario: resolve resolver1.opendns.com
7 When I run `hostip resolver1.opendns.com`
8 Then the output should contain exactly:
13 And the exit status should be 0
15 Scenario: resolve IPv6 address for www.opendns.com
17 When I run `hostip -6 www.opendns.com`
18 Then the output should contain exactly:
23 And the exit status should be 0
25 Scenario: resolve a nonexistent name
27 When I run `hostip nonexistent.local`
28 Then the output should contain exactly:
33 And the exit status should be 1
35 Scenario: resolve a nonexistent IPv6 name
37 When I run `hostip -6 nonexistent.local`
38 Then the output should contain exactly:
43 And the exit status should be 1