示例#1
0
def whitelist(connection, domain):
    """Whitelist a given domain."""
    PiholeCLI(connection).whitelist(domain)
示例#2
0
def whitelisted_domains(connection):
    """Get all of the custom whitelisted domains."""
    PiholeCLI(connection).get_whitelisted_domains()
示例#3
0
def blacklisted_domains(connection):
    """Get all of the custom blacklisted domains."""
    PiholeCLI(connection).get_blacklisted_domains()
示例#4
0
def remove_blacklisted_domain(connection, domain):
    """Remove a given custom blacklisted domain."""
    PiholeCLI(connection).remove_blacklisted_domains(domain)
示例#5
0
def tail(connection):
    """Tail the pi.hole resolver log file."""
    PiholeCLI(connection).tail()
示例#6
0
def blacklist(connection, domain):
    """Blacklist a given domain."""
    PiholeCLI(connection).blacklist(domain)
示例#7
0
def status(connection):
    """Query the status of the pi.hole instance."""
    PiholeCLI(connection).status()
示例#8
0
def chronometer(connection):
    """Continually print the stats using the chronometer."""
    PiholeCLI(connection).chronometer()
示例#9
0
def disable(connection):
    """Disable the pi.hole blacklist."""
    PiholeCLI(connection).disable()
示例#10
0
def enable(connection):
    """Enable the pi.hole blacklist."""
    PiholeCLI(connection).enable()
示例#11
0
def query(connection, domain):
    """Query the pi.hole instance for a given FQDN."""
    PiholeCLI(connection).query(domain)
示例#12
0
def remove_wildcard_blacklist(connection, domain):
    """Remove a given wildcard blacklist."""
    PiholeCLI(connection).remove_wildcard_blacklist(domain)
示例#13
0
def wildcard_blacklists(connection):
    """Print the wildcard blacklist."""
    PiholeCLI(connection).get_wildcard_blacklist()
示例#14
0
def wildcard_blacklist(connection, domain):
    """Blacklist a given domain and its subdomains."""
    PiholeCLI(connection).wildcard_blacklist(domain)
示例#15
0
def remove_whitelisted_domain(connection, domain):
    """Remove a given whitelisted domain."""
    PiholeCLI(connection).remove_whitelisted_domains(domain)