Pro tip: Take back control of resolv.conf | Linux Today

Pro tip: Take back control of resolv.conf

Written By
JWTR
Jack Wallen Tech Republic
May 13, 2015

Long ago, you could setup a Linux box and edit the /etc/resolv.conf file knowing the changes would stick. That made it incredibly simple to manage what DNS servers would be used by the machine. Fast-forward to now, and a manual edit of that same file will only be overwritten anytime you restart networking or reboot the machine.

Fortunately, this is Linux, so taking back control of the resolv.conf file isn’t much of a challenge… when you know what to look for. Let me serve as your guide in this quest. With a little work at the command line, you’ll be able to dictate exactly what goes into that resolv.conf file without issue.

JWTR

Jack Wallen Tech Republic

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.