Looking around I have found out the following about
/etc/resolv.conf valid formatting:
- Trailing whitespace is allowed
- Leading whitespace is NOT allowed
- DNS records are case insensitive, though you may have weird issues in applications that lowercase everything
However, I can't find anywhere whether the
resolv.conf keywords are case insensitive or case sensitive. They seem to be lowercase usually, but do they have to be? Is it an error if I find a server where they are in uppercase?
A google search turns up this forum thread, where a code example seems to indicate that the keywords are case insensitive. However, there is no link to any authoritative documentation.
/etc/resolv.conf keywords (such as
nameserver) case sensitive?