首页文章正文

linux配置dns命令,centos7添加dns

linux重启dns命令 2023-10-01 17:59 861 墨鱼
linux重启dns命令

linux配置dns命令,centos7添加dns

linux配置dns命令,centos7添加dns

1.安装DNS服务器操作系统(略)2.设置DNS服务器IP地址[root@localhost~]#vim/etc/sysconfig/network-scripts/ifcfg-ens33[root@localhost~]#nmclicdownens33[root@localhostLinux命令行设置IP地址和DNS1设置IP:11.1设置动态获取IP地址(DHCP)11.2设置固定IP12设置DNS: 22.1手动设置单个DNS22.2手动设置多个DNS33添加IP地址34添加默认网关34

Linux中有三种配置ns的方法。Modifyecho'DNS1="114.114.114.114"'>>/etc/sysconfig/network-scripts/ifcfg-eth0inthenetworkcardfile.Modifyecho"223.23INinthehostfilehostfile.//Therootdomaintypehintisdefine;//Theservertypeisdefineashintfile"named.ca";//Theconfigurationfilenameoftherootdomainisdefine}; zone"localdomain"IN{//ForwardDNSzonetypemasterisdefine;//定义areatypefile"localdomain

Linux下配置DNS解析服务器位置的方法有3种,配置完成后即可自动解析。 本地主机修改localhosts文件,使用hosts自动将域名解析为IP。这种方法也适用于windows。不过,从windows进入从机时,需要像宿主机一样安装bind,只需要配置named.conf配置文件。 5.验证配置是否成功1.正向解析验证命令dnslookupdns.wxc如果配置成功则显示如下:Server:192.168.131.135Addr

≥0≤ 一。 Linux基本网络配置命令1.ifconfig查看网络接口信息。 普通用户ifconfig的完整路径:sbin/ifconfigifconfig网络接口名称:显示指定接口的详细信息。 ifconfig-a1.ViewDNSserver1.1Viewthroughconfigurationfile#cat/etc/resolv.confoptionstimeout:1rotate;由/usr/sbin/dhclient-scriptnameserver183.60.83.19nameserv生成

后台-插件-广告管理-内容页尾部广告(手机)

标签: centos7添加dns

发表评论

评论列表

黑豹加速器 Copyright @ 2011-2022 All Rights Reserved. 版权所有 备案号:京ICP1234567-2号