PFRESOLVED.CONF(5)

NAME
pfresolved.conf - pf resolve daemon configuration file

DESCRIPTION
pfresolved.conf is the configuration file for pfresolved(8). It is used to configure the hosts that should be resolved by pfresolved(8) and the pf(4) tables that should be updated with the results.

pfresolved.conf is divided into two sections:

Macros
    User-defined macros may be defined and used later, simplifying the configuration file.

Tables
    Definition of the pf(4) tables and which hosts they should contain.

Lines beginning with a hash mark (‘#’) and empty lines are comments and will be ignored.

IP addresses can be specified in CIDR notation.

Additional files can be included with the include keyword, for example:

    include "/path/to/file"

MACROS
Macros can be defined that will later be expanded in context. Macro names must start with a letter, digit, or underscore, and may contain any of those characters. Macro names may not be reserved words (for example include). Macros are not expanded inside quotes.

For example:

    my_host = "www.example.com"
    myTable { $my_host }

TABLES
Table definitions have the following format:

    table_name {
    	address_list
    }

table_name
    The name of the pf(4) table that should be updated with the resolve results of the specified address_list. If the table does not yet exist in pf(4) it will be created by pfresolved(8)

address_list
    A list of hostnames that should be resolved by pfresolved(8) for the specified table. The list can also contain IP addresses and networks. These will be directly added to the table when the configuration file is loaded. IP addresses can also be negated by prefixing them with the! operator. Entries in the list may be separated by comma or newline.

EXAMPLES

    myTable1 { example.com, 192.0.2.0/24 }
    myTable2 {
    	example.net
    	example.org
    	198.51.100.0
    	! 198.51.100.1
    	include "/list/with/hosts"
    }

SEE ALSO
pf(4), pfresolved(8)

AUTHORS
Carsten Beckmann