[docs]@require_class(Ubuntu1604Server)classDNSServer:"""This graph_object provides DNS services for all nodes in in the experiment graph. """def__init__(self,dns_ip):""" Create the ``dns_data`` dictionary attribute which initializes many DNS parameters. Arguments: dns_ip (str): The IP Address of the DNS server. """self.dns_data={}self.dns_data["server"]=Trueself.dns_data["hosts_tracked"]="*"self.dns_data["dns_address"]=dns_ipself.install_bind()
[docs]definstall_bind(self,start_time=-20):"""Installs the bind9 debian packages. Arguments: start_time (int): The time at which to install bind. Defaults to -20. """self.install_debs(start_time,"bind9_xenial_debs.tgz")