layout: post
title: 修改DNS和hosts的优先级
date: 2017-12-17
tags: [“Linux”,”网络相关”]


  1. [root@joker-6-01 etc]# vim nsswitch.conf
  2. #hosts: db files nisplus nis dns
  3. hosts: files dns #files代表hosts,dns代表dns,如果要将dns的优先级调高,高于hosts文件,把dns放在前面便可
  4.  
文档更新时间: 2022-06-10 10:57   作者:张尚