<commit_before>## ADDRESS02: Reverse DNS entry exists for name server IP address

### Test case identifier
**ADDRESS02** Reverse DNS entry should exist for name server IP address

### Objective

Some anti-spam techniques use reverse DNS lookup to allow incoming traffic.
In order to prevent name servers to be blocked or blacklisted, DNS 
administrators should publish PTR records associated to name server
addresses.

[technical reference to be found]

### Inputs

The domain name to be tested.

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

1. Obtain the IP addresses of each name server of the domain checked
   using [Method5](../Methods.md)

2. For each IP address, a recursive PTR query must be performed.

3. If any answer of the queries performed in step 2 contains an RCODE
   other than NOERROR or if the answer does not include a PTR record,
   this test case fails.

### Outcome(s)

A list of of address with corresponding PTR records. These are the 
results of the PTR queries generated.

### Special procedural requirements

None.

### Intercase dependencies

The outcomes of this test is used as the input of ADDRESS03 test case.<commit_msg>Some precision about the test case outcomes.<commit_after>## ADDRESS02: Reverse DNS entry exists for name server IP address

### Test case identifier
**ADDRESS02** Reverse DNS entry should exist for name server IP address

### Objective

Some anti-spam techniques use reverse DNS lookup to allow incoming traffic.
In order to prevent name servers to be blocked or blacklisted, DNS 
administrators should publish PTR records associated to name server
addresses.

[technical reference to be found]

### Inputs

The domain name to be tested.

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

1. Obtain the IP addresses of each name server of the domain checked
   using [Method5](../Methods.md)

2. For each IP address, a recursive PTR query must be performed.

3. If any answer of the queries performed in step 2 contains an RCODE
   other than NOERROR or if the answer does not include a PTR record,
   this test case fails.

### Outcome(s)

A list of of address with corresponding PTR records. These are the 
results of the PTR queries generated. The result could be stored as a
hash table where the key is the IP address and the values, the hostnames found.

### Special procedural requirements

None.

### Intercase dependencies

The outcomes of this test is used as the input of [ADDRESS03](Address03) test case.
{'fraction_non_alphanumeric': 0.049642573471008734, 'fraction_numerical': 0.009531374106433678, 'mean_word_length': 4.130346232179226, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4434422', 'n_tokens_mistral': 653, 'n_tokens_neox': 628, 'n_words': 387}