<commit_before>## CONNECTIVITY06: Check whether all the IP addresses of the child domain's authoritative name server belong to same AS


### Test case identifier
**CONNECTIVITY06:** Check whether all the IP addresses of the child domain's authoritative name server belong to same AS

### Objective
[RFC 2182](http://tools.ietf.org/html/rfc2182), section 3.1 clearly specifies that distinct authoritative name servers for a child domain should be placed in different topological and geographical locations. The objective is to minimise the likelihood of a single failure disabling all of them. 

The objective in this test is to avoid more than one IP addresses of the authoritative name servers of the child domain belonging to the same subnet

### Inputs
1. The IP addresses of the child domain's authoritative name servers

### Ordered description of steps to be taken to execute the test case
1. Retrieve the AS (name) for each IP address in the input 
2. If all the retrieved AS are same, then the test fails

### Outcome(s)
If there is a AS which is different from the other retrieved AS, then the test succeeds

### Special procedural requirements

### Intercase dependencies
None<commit_msg>connectivity06.md updated<commit_after>## CONNECTIVITY06: All IP addresses of the domain's authoritative name server should not be part of same AS


### Test case identifier

**CONNECTIVITY06:** All IP addresses of the domain's authoritative name server should not be part of same AS 

### Objective
[RFC 2182](http://tools.ietf.org/html/rfc2182), section 3.1 clearly specifies that distinct authoritative name servers for a child domain should be placed in different topological and geographical locations. The objective is to minimise the likelihood of a single failure disabling all of them. 

The objective in this test is to check that all IP addresses of the domain's authoritative name servers does not belong to the same AS


### Inputs

1. The domain name to be tested

### Ordered description of steps to be taken to execute the test case

1. Find the list of all the name servers used by the domain. This list MUST contain all name servers from the parent delegation for the domain, and all name servers in the apex of the domain's zone itself
2. Find the IP addresses corresponding to the name servers in step1. In order to do that: <br/>
2.1. Collect all glue records from the parent for the domain <br/>
2.2. Collect all IP addresses of the name servers, authoritative for the domain from the domain's zone (i.e. the domain being tested) <br/>
2.3. Collect all the IP addresses used by out-of-bailwick name servers <br/>
3. Make the AS (name) list for each IP address obtained from step2
4. If all the retrieved AS are same, then the test fails

### Outcome(s)

If there is a AS which is different from the other retrieved AS, then the test succeeds

### Special procedural requirements

None

### Intercase dependencies

None
{'fraction_non_alphanumeric': 0.051735874744724304, 'fraction_numerical': 0.015656909462219197, 'mean_word_length': 4.422509225092251, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4735480', 'n_tokens_mistral': 762, 'n_tokens_neox': 697, 'n_words': 456}