dnscrypto-proxy: Update to release 1.3.0
[tomato.git] / release / src / router / dnscrypt / test / features / test-hostip / resolve.feature
blobc74f7342a1ee6f1bb81e557b19709de6b143fd25
1 Feature: See if hostip can resolve names
3   Resolve names with the hostip utility.
4   
5   Scenario: resolve resolver1.opendns.com
6   
7     When I run `hostip resolver1.opendns.com`
8     Then the output should contain exactly:
9     """
10     208.67.222.222
12     """
13     And the exit status should be 0
15   Scenario: resolve IPv6 address for www.opendns.com
16   
17     When I run `hostip -6 www.opendns.com`
18     Then the output should contain exactly:
19     """
20     2620:0:cc1:115::210
22     """
23     And the exit status should be 0
25   Scenario: resolve a nonexistent name
26   
27     When I run `hostip nonexistent.local`
28     Then the output should contain exactly:
29     """
30     [name does not exist]
32     """
33     And the exit status should be 1
35   Scenario: resolve a nonexistent IPv6 name
36   
37     When I run `hostip -6 nonexistent.local`
38     Then the output should contain exactly:
39     """
40     [name does not exist]
42     """
43     And the exit status should be 1