当前位置:网站首页>win12 修改dns脚本
win12 修改dns脚本
2022-08-10 05:31:00 【开发老张】
当有 vpn 的时候,连接 vpn 后需要将 dns 地址改为 vpn 连接上的网络环境中的一台 named 服务器上
在 D:/soft 下新建一个 chdns.bat 批处理文件,内容:
# 设置 dns 地址为 10.1.2.3
netsh interface ip set dns name="以太网 2" source=static addr=10.1.2.3 register=primary
# 将原来本地的 dns 地址也添加上
netsh interface ip add dns name="以太网 2" addr=10.2.3.1
pause因为 .bat 文件无法直接放到 win12 的开始菜单中,因此需要用 exe 文件做一个过度
在 C:\Users\user\AppData\Roaming\Microsoft\Windows\Start Menu\Programs 下鼠标右键 - 新建 - 快捷方式,目标:C:\Windows\System32\cmd.exe /c D:\soft\chdns.bat
此时在开始菜单中点击 chdos.bat 即可设置好 DNS 信息;
边栏推荐
- k-近邻实现手写数字识别
- 利用PyQt5制作YOLOv5的GUI界面
- 手把手带你写嵌入式物联网的第一个项目
- Introduction to curl command
- CSDN Markdown 之我见代码块 | CSDN编辑器测评
- Attention candidates for the soft exam! The detailed registration process for the second half of 2022 is coming!
- 行盒子的盒模型
- Concurrency tool class - introduction and use of CountDownLatch, CyclicBarrier, Semaphore, Exchanger
- 虚拟土地价格暴跌85% 房地产泡沫破裂?依托炒作的暴富游戏需谨慎参与
- 文章复现:超分辨率网络-VDSR
猜你喜欢

canvas canvas drawing clock

基于Qiskit——《量子计算编程实战》读书笔记(一)

训练集Loss收敛,但是测试集Loss震荡的厉害?
![[Thesis Notes] Prototypical Contrast Adaptation for Domain Adaptive Semantic Segmentation](/img/ac/51c2b2e4efed822f110d6963308eef.png)
[Thesis Notes] Prototypical Contrast Adaptation for Domain Adaptive Semantic Segmentation

conda创建虚拟环境方法和pqi使用国内镜像源安装第三方库的方法教程

Practical skills 19: Several postures of List to Map List

Tkinter 入门之旅

8.STM32F407之HAL库——PWM笔记

Zhongang Mining: Strong downstream demand for fluorite

Error when installing oracle rac 11g and executing root.sh
随机推荐
PCL点云配准--ICP or keypoints+features
【格式转换】将JPEG图片批量处理为jpg格式
手把手带你写嵌入式物联网的第一个项目
Thread.sleep, Thread.yield role explanation
pygame学习计划(1)
【yolov5训练错误】WARNING: Ignoring corrupted image
常用工具系列 - 常用正则表达式
并发工具类——CountDownLatch、CyclicBarrier、Semaphore、Exchanger的介绍与使用
细数国产接口协作平台的六把武器!
基于Qiskit——《量子计算编程实战》读书笔记(二)
WSTP初体验
文章复现:超分辨率网络-VDSR
pytorch框架学习(7) tensorboard使用
训练集Loss收敛,但是测试集Loss震荡的厉害?
scikit-learn机器学习 读书笔记(一)
【论文笔记1】小样本分类
【写下自用】每次都忘记如何train?记录如何训练自己的yolov5
Joomla vulnerability reproduced
PCL,VS配置过程中出现:用 _sopen_s 代替 _open, 或用_CRT_SECURE_NO_WARNNINGS错误
如何用Apifox 的智能Mock功能?