reliability
inject_gradual_traffic_into_endpoint
Load traffic into the given endpoint.
Resolve a domain for a specific type from the given nameservers
Below are the details and signature of the activity Python module.
Type | probe |
Module | chaosreliably.activities.dns.probes |
Name | resolve_name |
Return | list |
Usage
JSON
{
"name": "resolve-dns-name",
"type": "probe",
"provider": {
"type": "python",
"module": "chaosreliably.activities.dns.probes",
"func": "resolve_name",
"arguments": {
"domain": ""
}
}
}
YAML
name: resolve-dns-name
type: probe
provider:
func: resolve_name
module: chaosreliably.activities.dns.probes
type: python
arguments:
domain: ""
Arguments
Name | Type | Default | Required | Title | Description |
---|---|---|---|---|---|
domain | string | Yes | Domain | FQDN to read information from | |
nameservers | list | [“8.8.8.8”] | No | Nameservers | List of nameservers to query for this domain |
resolve_type | string | “A” | No | Resolve Type | Type to resolve for this domain |
Signature
def resolve_name(domain: str,
nameservers: Sequence[str] = ('8.8.8.8', ),
resolve_type: str = 'A') -> List[str]:
pass