slimDNS.TCP_SERVER¶
-
class
slimDNS.TCP_SERVER(*args, **kwargs)¶ Bases:
object-
add(record, record_type, target, ttl=60, **kwargs)¶
-
default_config()¶ Returns a simple but sane default configuration in case no one is given.
Returns: {‘addr’ : ‘’, ‘port’ : 53} Return type: dict
-
log(*args, **kwargs)¶ A simple print wrapper, placeholder for more advanced logging in the future. Joins any *args together and safely calls :func:’str’ on each argument.
-
poll(timeout=0.001)¶
-
records(f, *args, **kwargs)¶
-
remove(record, record_type)¶
-
run()¶
-
setup_socket()¶
-
update(record, record_type, **kwargs)¶
-