BIND Resolver Statements
The following statements are for the resolver configuration file, /etc/resolv.conf.domain
- Function:
- Defines your resolver's local domain name
- Syntax:
-
domain domain-name
- Example:
-
domain corp.hp.com
search
- Function:
- Defines your resolver's local domain name and search list
- Syntax:
-
search local-domain-name next-domain-name-in-search-list ... last-domain-name-in-search-list
- Example:
-
search corp.hp.com pa.itc.hp.com hp.com
nameserver
- Function:
- Tells your resolver to query a particular name server
- Syntax:
-
nameserver IP-address
- Example:
-
nameserver 15.255.152.4
; and # (4.9+)
- Syntax:
-
; free-format-comment
or
# free-format-comment
- Example:
-
# Added parent domain to search list for compatibility with 4.8.3
sortlist (4.9+)
- Function:
- Specifies networks for your resolver to prefer
- Syntax:
-
sortlist network-list
- Example:
-
sortlist 128.32.4.0/255.255.255.0 15.0.0.0
options ndots (4.9+)
- Function:
- Specifies the number of dots an argument must have in it so that the resolver will look it up before applying the search list
- Syntax:
-
options ndots:number-of-dots
- Example:
-
options ndots:1
options debug (4.9+)
- Function:
- Turns on debugging output in the resolver
- Syntax:
-
options debug
- Example:
-
options debug
options no-check-names (8.2+)
- Function:
- Turns off name checking in the resolver
- Syntax:
-
options no-check-names
- Example:
-
options no-check-names
options attempts (8.2+)
- Function:
- Specifies the number of times the resolver should query each name server
- Syntax:
-
options attempts:number-of-attempts
- Example:
-
options attempts:2
options timeout (8.2+)
- Function:
- Specifies the resolver's per-name server timeout
- Syntax:
-
options timeout:timeout-in-seconds
- Example:
-
options timeout:1
options rotate (8.2+)
- Function:
- Rotates the order in which the resolver queries name servers