Source: factory.deploy/extend.environment/ObjDNSManager.py
Represents a DNS record configuration.
Represents a host with DNS configuration.
Modern DNS management module for Cloudflare and other DNS providers.
Features:
| Method | Signature | Description |
|---|---|---|
| create_dns_record | create_dns_record(hostname: str, domain: str, ip_address: str, api_token: str, api_email: str, record_type: str = 'A') -> bool |
Create a DNS record with retry logic. |
| create_multiple_dns_records | create_multiple_dns_records(hostnames: List[str], domain: str, ip_address: str, api_token: str, api_email: str) -> Dict[str, bool] |
Create multiple DNS records for the same IP. |
| setup_host_dns | setup_host_dns(host: DNSHost, domain: str, api_token: str, api_email: str) -> bool |
Setup DNS for a single host with optional subdomains. |
| setup_cluster_dns | setup_cluster_dns(hosts: List[Dict[str, Any]], domain: str, api_token: str, api_email: str, main_ip: Optional[str] = None) -> Dict[str, bool] |
Setup DNS for entire cluster from YAML-style host configuration. |
| setup_from_config | setup_from_config(yaml_config: Dict[str, Any]) -> Dict[str, bool] |
Setup DNS from YAML configuration (matches legacy interface). |
| get_statistics | get_statistics() -> Dict[str, Any] |
Get DNS operation statistics. |