RESOLV.CONF on OpenWRT

wiki.TerraBase.info
Revision as of 01:28, 22 August 2021 by Root (talk | contribs) (Created page with "===== Introduction ===== With the default install of OpenWRT, the resolv.conf file is automatically generated during boot up and place here: /tmp (Full Path: /tmp/resolv.conf....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Introduction

With the default install of OpenWRT, the resolv.conf file is automatically generated during boot up and place here: /tmp (Full Path: /tmp/resolv.conf.auto

And now you might be saying, "...wait a minute, resolv.conf and resolv.conf.auto, is there a typo there? Nope. Here's what happens when OpenWRT boots up;

  • /tmp/resolv.conf.auto is created during bootup from the DNS Servers configured for each interface (IE, if the WAN interface has a single DNS Server defined, the /tmp/resolv.conf.auto file will have one entry, if there are two DNS Servers defined for the WAN interface the same /tmp/resolv.conf.auto file will have two entries, if there are two WAN interfaces all of their DNS Servers will be included in the /tmp/resolve.conf.auto file, etc.)
  • A Symbolic Link is created as follows: /tmp/resolv.conf →