3

2创建DNS服务器

 2 years ago
source link: https://shidawuhen.github.io/2022/08/26/2%E5%88%9B%E5%BB%BADNS%E6%9C%8D%E5%8A%A1%E5%99%A8/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

我们按照创建DNS服务器的方法再创建一台WinSer2016的虚拟机,用于当做临时DNS服务器。服务器创建后,需要做如下操作。

一、虚拟机配置

1.1配置适配器

image-20220825204057868
image-20220807234439212

二、初始化设置

2.1设置IP地址

image-20220807234921058

2.2关闭防火墙

image-20220807235021136

2.3更改机器名称

image-20220807235132639

2.4检验到默认网关是否通

cmd打开console,执行:ping 172.16.10.1和172.16.40.1查看结果

此时访问不了外网

image-20220807235336379

三、安装Chrome浏览器

https://baoku.360.cn/sinfo/104384025_4002059.html 下载浏览器,拷贝到DSNWorkstation进行安装

四、安装DNS服务

我们开始安装DNS服务

image-20220808132536603

五、配置DNS服务

这一步其实可以在后面配置,DNS服务的作用是为了做域名与IP之间的转换,使用VMware需要创建一些内部域名,正好可以使用该服务器做解析。

因为提前知道要解析的域名及ip为:vcsa1.pushits.com和172.16.10.254,我们按照这个数据进行配置。

PS:在后面部分,我将IP修改为了172.16.10.253

5.1创建正向查找

image-20220808133142992
image-20220808133159155
image-20220808133247723

5.2创建反向查找

image-20220808133355754
image-20220808133421402

5.3创建A记录和PTR记录

image-20220808133533902
image-20220808133613827

反向查找可检查

image-20220808133719703

5.4验证

cmd开启console

  1. 主机名解析出IP:nslookup -nosearch -nodefname vcsa1.pushits.com
  2. IP解析出主机名:nslookup -nosearch -nodefname 172.16.10.253
image-20220808133845584
image-20220808134033269

这是相对通用的创建DNS方案,不仅可以用在VMware上,希望对大家有所帮助。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK