| 1 |
## Name |
| 2 |
|
| 3 |
_root_ - override the global root |
| 4 |
|
| 5 |
# Description |
| 6 |
|
| 7 |
This handler allows for overriding the `root` directive from the global block in the current handler block. |
| 8 |
It works identical to the atomdns-global(1) `root`'s configuration. |
| 9 |
|
| 10 |
# Syntax |
| 11 |
|
| 12 |
```txt |
| 13 |
root DIRECTORY |
| 14 |
``` |
| 15 |
|
| 16 |
- with `root` **DIRECTORY** is the directory to use as the root directory in the handler block. Any relative path |
| 17 |
names will get this directory prefixed. If **DIRECTORY** itself is also relative, the current working |
| 18 |
directory (cwd) of the atomdns process will be prefixed. |
| 19 |
|
| 20 |
# Examples |
| 21 |
|
| 22 |
```conffile |
| 23 |
example.org { |
| 24 |
root /my/zones |
| 25 |
dbfile db.example.org |
| 26 |
} |
| 27 |
``` |
| 28 |
|
| 29 |
The "db.example.org" zone should now be located in /my/zones. |
| 30 |
|
| 31 |
# Notes |
| 32 |
|
| 33 |
This handler must be set first in a handler block to effect all subsequent handlers in the block. |
| 34 |
|
| 35 |
# See Also |
| 36 |
|
| 37 |
atomdns-global(1). |