Solved resolv.conf not working

Just thought I'd post this in case anybody else has the same issue in future. It's bitten me a number of times over the years without realizing what was the cause.

The resolv.conf file won't work correctly if there are any leading whitespace characters before the "nameserver" definitions.


Seems like FreeBSD will automatically revert to using any locally found DNS recursor if you have one running so you might still be able to resolve domains correctly but the incorrect nameservers might be used.
 
Back
Top