layout: post
title: 修改DNS和hosts的优先级
date: 2017-12-17
tags: [“Linux”,”网络相关”]
- [root@joker-6-01 etc]# vim nsswitch.conf
- #hosts: db files nisplus nis dns
- hosts: files dns #files代表hosts,dns代表dns,如果要将dns的优先级调高,高于hosts文件,把dns放在前面便可
文档更新时间: 2022-06-10 10:57 作者:张尚