bind:enable_logging
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
bind:enable_logging [2016/10/16 12:22] – peter | bind:enable_logging [2019/11/26 21:06] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Bind - Enable Logging ====== | ||
- | |||
- | The **rndc** command controls the operation of a name server. | ||
- | |||
- | rndc communicates with the name server over a TCP connection, sending commands authenticated with digital signatures. In the current versions of rndc and bind the only supported authentication algorithm is HMAC-MD5, which uses a shared secret on each end of the connection. This provides TSIG-style authentication for the command request and the name server' | ||
- | |||
- | |||
- | ===== Turn on logging ===== | ||
- | |||
- | Type the following command as root to toggle query logging: | ||
- | |||
- | <code bash> | ||
- | rndc querylog | ||
- | </ | ||
- | |||
- | ===== View bind sever query log ===== | ||
- | |||
- | Once this is done, you can view all logged queries usimg / | ||
- | |||
- | <code bash> | ||
- | tail -f / | ||
- | </ | ||
- | |||
- | You might need to tail / | ||
- | |||
- | ===== Turn off logging ===== | ||
- | |||
- | Type the following command as root to toggle query logging: | ||
- | |||
- | <code bash> | ||
- | rndc querylog | ||
- | </ | ||
- | |||
- | |||
- | |||
- | <file bash> | ||
- | </ | ||
bind/enable_logging.1476620550.txt.gz · Last modified: 2020/07/15 09:30 (external edit)