def whitelist(connection, domain): """Whitelist a given domain.""" PiholeCLI(connection).whitelist(domain)
def whitelisted_domains(connection): """Get all of the custom whitelisted domains.""" PiholeCLI(connection).get_whitelisted_domains()
def blacklisted_domains(connection): """Get all of the custom blacklisted domains.""" PiholeCLI(connection).get_blacklisted_domains()
def remove_blacklisted_domain(connection, domain): """Remove a given custom blacklisted domain.""" PiholeCLI(connection).remove_blacklisted_domains(domain)
def tail(connection): """Tail the pi.hole resolver log file.""" PiholeCLI(connection).tail()
def blacklist(connection, domain): """Blacklist a given domain.""" PiholeCLI(connection).blacklist(domain)
def status(connection): """Query the status of the pi.hole instance.""" PiholeCLI(connection).status()
def chronometer(connection): """Continually print the stats using the chronometer.""" PiholeCLI(connection).chronometer()
def disable(connection): """Disable the pi.hole blacklist.""" PiholeCLI(connection).disable()
def enable(connection): """Enable the pi.hole blacklist.""" PiholeCLI(connection).enable()
def query(connection, domain): """Query the pi.hole instance for a given FQDN.""" PiholeCLI(connection).query(domain)
def remove_wildcard_blacklist(connection, domain): """Remove a given wildcard blacklist.""" PiholeCLI(connection).remove_wildcard_blacklist(domain)
def wildcard_blacklists(connection): """Print the wildcard blacklist.""" PiholeCLI(connection).get_wildcard_blacklist()
def wildcard_blacklist(connection, domain): """Blacklist a given domain and its subdomains.""" PiholeCLI(connection).wildcard_blacklist(domain)
def remove_whitelisted_domain(connection, domain): """Remove a given whitelisted domain.""" PiholeCLI(connection).remove_whitelisted_domains(domain)