From the course: Managing DNS Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Mac hosts file and resolv.conf explained

Mac hosts file and resolv.conf explained

From the course: Managing DNS Essential Training

Start my 1-month free trial

Mac hosts file and resolv.conf explained

- [Voiceover] The resolver used by DiG does not use the same processes used by the rest of OS X in El Capitan. Which isn't really a problem on local client systems unless a user with administrative privileges has modified the contents of a couple of important files on the client computer. The etc/resolve.conf file, which we see here, is used by DiG and is automatically generated. It contains the information, by default, that's configured in your network system preferences. But it can be modified to include custom name to IP address mappings that will circumvent other DNS lookup operations on the system. This is sometimes used by administrators to make one-off configuration changes, or behavior modifications, for a computer they want to behave differently from other computers on the their network. This can be used to block certain URLs by redirecting them to a dead end, for example. And there are other uses as well that I will leave up to your administrative imagination. In OS X there…

Contents