Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.17 KB

File metadata and controls

32 lines (23 loc) · 1.17 KB

DNSServer

Properties

Name Type Description Notes
automatic bool A flag indicating if the DNS server should respond automatically with the test interface IP. [optional]
enabled bool A flag indicating if the servers should listen for DNS requests (default: false).
ip_to_resolve_to str The IP that will be returned for all queries [optional]
port int The port that the DNS server should listen on. (default: 53)

Example

from cyperf.models.dns_server import DNSServer

# TODO update the JSON string below
json = "{}"
# create an instance of DNSServer from a JSON string
dns_server_instance = DNSServer.from_json(json)
# print the JSON string representation of the object
print(DNSServer.to_json())

# convert the object into a dict
dns_server_dict = dns_server_instance.to_dict()
# create an instance of DNSServer from a dict
dns_server_from_dict = DNSServer.from_dict(dns_server_dict)

[Back to Model list] [Back to API list] [Back to README]