centos搭建dns服务器
前言:搭建dns服务器,dns服务器我就不多说什么了,大家都懂,就是域名解析,就将ip装换为域名,域名就可以理解为类似这样的www.baidu.com网址,接下来我就直接上图了。这里面最重要的是修改unbound配置文件,配置文件,文件
操作:
1.环境拓扑
![](https://upload-images.jianshu.io/upload_images/15569140-96c972800b907081.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
服务器:
2.配置yum仓库
![](https://upload-images.jianshu.io/upload_images/15569140-26335e210baf01e7.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
3.安装unbound组件
![](https://upload-images.jianshu.io/upload_images/15569140-08df9279623b67fe.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
4.更改unbound配置文件
![](https://upload-images.jianshu.io/upload_images/15569140-8765c58816055f3d.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![](https://upload-images.jianshu.io/upload_images/15569140-a14d38c125329f71.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![](https://upload-images.jianshu.io/upload_images/15569140-598f9cb3ae3202f6.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![](https://upload-images.jianshu.io/upload_images/15569140-f153998c794d358f.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![](https://upload-images.jianshu.io/upload_images/15569140-b559315216aa8a6c.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![](https://upload-images.jianshu.io/upload_images/15569140-1c9068ca46a7249c.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
5.改服务器主机名
![](https://upload-images.jianshu.io/upload_images/15569140-c695435300657dca.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
6.修改unbound配置文件,并且重启
![](https://upload-images.jianshu.io/upload_images/15569140-6b5f8de6d1ab7198.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![](https://upload-images.jianshu.io/upload_images/15569140-215b7331b5a611d8.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
7.设置防火墙
![](https://upload-images.jianshu.io/upload_images/15569140-5000d0293405c17b.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
8.校检:服务器本地来实现本机dns解析
![](https://upload-images.jianshu.io/upload_images/15569140-7988d2880e6bcc7b.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
效果:客户端上配置dns,并且实现域名解析
![](https://upload-images.jianshu.io/upload_images/15569140-e5328f0b4cbbafab.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![](https://upload-images.jianshu.io/upload_images/15569140-61cec173176b112b.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)