Module sysbot.modules.windows.dnsserver
Windows DNS Server Module
This module provides methods for managing and querying Windows DNS Server, including zones, resource records, forwarders, and DNS server configuration using PowerShell DNS Server cmdlets.
Classes
class Dnsserver-
Windows DNS Server management class using PowerShell DNS Server cmdlets.
Ancestors
Methods
def get_cache(self, alias: str, **kwargs) ‑> dict-
Get DNS server cache settings.
Args
alias- Session alias for the connection.
**kwargs- Additional command execution options.
Returns
Dictionary containing DNS cache configuration.
def get_forwarder(self, alias: str, **kwargs) ‑> dict-
Get DNS server forwarders.
Args
alias- Session alias for the connection.
**kwargs- Additional command execution options.
Returns
Dictionary containing DNS forwarder configuration.
def get_resource_records(self, alias: str, zone_name: str, **kwargs) ‑> list-
Get all DNS resource records from a zone.
Args
alias- Session alias for the connection.
zone_name- Name of the DNS zone to query.
**kwargs- Additional command execution options.
Returns
List of dictionaries containing DNS resource record information.
def get_server(self, alias: str, **kwargs) ‑> dict-
Get DNS server configuration.
Args
alias- Session alias for the connection.
**kwargs- Additional command execution options.
Returns
Dictionary containing DNS server configuration.
def get_setting(self, alias: str, **kwargs) ‑> dict-
Get DNS server settings.
Args
alias- Session alias for the connection.
**kwargs- Additional command execution options.
Returns
Dictionary containing all DNS server settings and configuration.
def get_statistics(self, alias: str, **kwargs) ‑> dict-
Get DNS server statistics.
Args
alias- Session alias for the connection.
**kwargs- Additional command execution options.
Returns
Dictionary containing DNS server statistics and performance metrics.
def get_zone(self, alias: str, zone_name: str, **kwargs) ‑> dict-
Get specific DNS zone by name.
Args
alias- Session alias for the connection.
zone_name- Name of the DNS zone to retrieve.
**kwargs- Additional command execution options.
Returns
Dictionary containing DNS zone information.
def get_zones(self, alias: str, **kwargs) ‑> list-
Get all DNS zones.
Args
alias- Session alias for the connection.
**kwargs- Additional command execution options.
Returns
List of dictionaries containing DNS zone information.