Differences

This shows you the differences between two versions of the page.

Link to this comparison view

d:dns_translation_file [2018/08/10 18:16]
d:dns_translation_file [2018/08/10 18:16] (current)
Line 1: Line 1:
 +# DNS Translation File
 +
 +A DNS Translation File consists of a list of [DNS](../​d/​dns) name pairs, consisting of a *match* and a *replacement*. When the file is used, the *match* is converted to the *replacement*,​ which is then passed to the [resolver](../​r/​resolver).
 +
 +Special characters can be used in the match:
 +
 +^ Character ^ Usage ^
 +| `?` | Wildcard for a single character. |
 +| `*` | Wildcard for multiple characters. |
 +| `#` | Comment. |
 +
 +**Note:** Wildcards can only be used in the match, not the replacement.
 +
 +### Example
 +
 +Example of DNS translation file contents:
 +
 +```
 +# Translation File
 +www.*tester.com www.pure-tester.com
 +mail?​.google.com mail.google.com
 +```