dnscrypto-proxy: Update to release 1.3.0
[tomato.git] / release / src / router / dnscrypt / test / features / test-hostip / resolve-specific.feature
blob43e4e84c89bbd47fe4ff6bf410273d3e8c4ac6b3
1 Feature: See if hostip can resolve names given a specific resolver
3   Resolve names with the hostip utility using Google DNS.
4   
5   Scenario: resolve resolver1.opendns.com
6   
7     When I run `hostip -r 8.8.8.8 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 -r 8.8.8.8 -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 -r 8.8.8.8 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 -r 8.8.8.8 -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