linux下Bind域名服务器的安装

简介:
 刚做了一个LINUX下BIND域名服务的实验,把过程写出来共享一下。
    (实验是在虚拟机里做的,linux版本为redhat9.0)

    首先,到中国LINUX公社,搜索webmin,把这个东东下载回来,至于这个东东是做什么用的,后面再给解释。
     下载完后,解压webmin-1.150.tar.gz,(命令是:tar -zxvf webmin-1.150.tar.gz,还可以根据需要加其他参数),解压完后,路径为:/root/soft/webmin-1.150,进入到这个目录,然后使用命令:./setup.sh来安装文件:
[loveme23@loveme23 webmin-1.150]$ ./setup.sh
***********************************************************************
* Welcome to the Webmin setup script, version 1.150 *
***********************************************************************
Webmin is a web-based interface that allows Unix-like operating
systems and common Unix services to be easily administered.
ERROR: The Webmin install script must be run as root //必须在根目录下才能装
[loveme23@loveme23 webmin-1.150]$ su -
Password:
[root@loveme23 webmin-1.150]#  cd /home/gzq/webmin-1.150
[root@loveme23 webmin-1.150]#  ./setup.sh
***********************************************************************
* Welcome to the Webmin setup script, version 1.150 *
***********************************************************************
Webmin is a web-based interface that allows Unix-like operating
systems and common Unix services to be easily administered.
Installing Webmin in /root/soft/webmin-1.150 ...
***********************************************************************
Webmin uses separate directories for configuration files and log files.
Unless you want to run multiple versions of Webmin at the same time
you can just accept the defaults.

Config file directory [/etc/webmin]: //设定文档的存放目录
Log file directory [/var/webmin]: //记录文档的存放目录
***********************************************************************
Webmin is written entirely in Perl. Please enter the full path to the
Perl 5 interpreter on your system.
Full path to perl (default /usr/bin/perl): //perl的程序目录
Testing Perl ...
Perl seems to be installed ok
***********************************************************************
Operating system name: Redhat Linux
Operating system version: 3.0ES
***********************************************************************
Webmin uses its own password protected web server to provide access
to the administration programs. The setup script needs to know :
- What port to run the web server on. There must not be another
web server already using this port.
- The login name required to access the web server.
- The password required to access the web server.
- If the webserver should use SSL (if your system supports it).
- Whether to start webmin at boot time.
Web server port (default 10000): //服务端口,缺省为10000
Login name (default admin): abc //登陆名
Login password: //登陆密码
Password again:
The Perl SSLeay library is not installed. SSL not available.
Start Webmin at boot time (y/n): y
***********************************************************************
Creating web server config files..
..done

Creating access control file..
..done
Inserting path to perl into scripts..
..done
Creating start and stop scripts..
..done
Copying config files..
..done
Configuring Webmin to start at boot time..
Created init script /etc/rc.d/init.d/webmin
..done
Creating uninstall script /etc/webmin/uninstall.sh ..
..done
Changing ownership and permissions ..
..done
Running postinstall scripts ..
..done
Attempting to start Webmin mini web server..
Starting Webmin server in /root/soft/webmin-1.150
..done
***********************************************************************
Webmin has been installed and started successfully. Use your web
browser to go to
[url]http://loveme23:10000/[/url] //你在浏览器上的地址
and login with the name and password you entered previously.

以上为安装完成过程。
下面在浏览器里输入:[url]http://loveme23:10000/[/url]就打开了webmin的界面,如图:
这就是webmin的登陆界面。然后输入用户名和密码登陆,下图为管理界面:
然后点击Servers,出现下图:
然后点击:BIND DNS Server,如下图:
在Existing DNS Zones里点击Creat a new forward zone新建一个forward zone,我这里已经建立好了一个--loveme23.com,点击loveme23.com,出现下图:
点击Address.
在Name里输入www,Address里输入服务器的ip地址,我这里输入的是172.20.5.123,就是我这台linux的ip地址,然后点击Creat创建。完成后后退到上一个界面,点击Name Server,进入下图:
会显示你在第一步创建的forward zone,这样就可以了,后退到上一个界面,点击左下方的Apply Changes应用配置。然后返回到Band DNS界面同样的方法应用配置。
     到这里就完成了Bind DNS的配置,下面是测试结果:
 OK,写完了,这里做的是正向DNS配置,反向的会在以后写出来,希望对广大linux爱好者有帮助。。。

webmin的详细资料:[url]http://www.ibm.com/developerworks/cn/linux/l-roadmap/part3/[/url]




















本文转自loveme2351CTO博客,原文链接:http://blog.51cto.com/loveme23/21368 ,如需转载请自行联系原作者


相关文章
|
7月前
|
Ubuntu Linux 网络安全
Linux服务器之Ubuntu的安装与配置
Ubuntu Desktop是目前最成功、最流行的图形界面的Linux发行版;而Ubuntu Server也在服务器端市场占据了较大的份额。今天为大家详细介绍了Ubuntu Server的安装与配置,希望对你能有所帮助。关于VMware、VirtualBox等虚拟化软件的使用,朱哥还会在后续的文章中为大家详细介绍,敬请关注!
|
5月前
|
Shell Linux 网络安全
宝塔服务器面板部署安装git通过第三方应用安装收费怎么办—bash: git: command not found解决方案-优雅草卓伊凡
宝塔服务器面板部署安装git通过第三方应用安装收费怎么办—bash: git: command not found解决方案-优雅草卓伊凡
894 3
宝塔服务器面板部署安装git通过第三方应用安装收费怎么办—bash: git: command not found解决方案-优雅草卓伊凡
|
6月前
|
Ubuntu 安全 关系型数据库
安装MariaDB服务器流程介绍在Ubuntu 22.04系统上
至此, 您已经在 Ubuntu 22.04 系统上成功地完成了 MariadB 的标准部署流程,并且对其进行基础但重要地初步配置加固工作。通过以上简洁明快且实用性强大地操作流程, 您现在拥有一个待定制与使用地强大 SQL 数据库管理系统。
394 18
|
6月前
|
Ubuntu 安全 关系型数据库
安装MariaDB服务器流程介绍在Ubuntu 22.04系统上
至此, 您已经在 Ubuntu 22.04 系统上成功地完成了 MariadB 的标准部署流程,并且对其进行基础但重要地初步配置加固工作。通过以上简洁明快且实用性强大地操作流程, 您现在拥有一个待定制与使用地强大 SQL 数据库管理系统。
438 15
|
6月前
|
弹性计算 安全 Linux
使用阿里云服务器安装Z-Blog博客网站流程,新手一键部署教程
本教程教你如何在阿里云99元服务器上,通过宝塔Linux面板一键部署Z-Blog博客。基于CentOS 7.9系统,从远程连接、安装宝塔面板、开放端口到部署Z-Blog全流程详解,操作简单,新手也能轻松搭建个人博客网站。
687 13
|
6月前
|
存储 域名解析 弹性计算
阿里云上云流程参考:云服务器+域名+备案+域名解析绑定,全流程图文详解
对于初次通过阿里云完成上云的企业和个人用户来说,很多用户不仅是需要选购云服务器,同时还需要注册域名以及完成备案和域名的解析相关流程,从而实现网站的上线。本文将以上云操作流程为核心,结合阿里云的活动政策与用户系统梳理云服务器选购、域名注册、备案申请及域名绑定四大关键环节,以供用户完成线上业务部署做出参考。
|
7月前
|
弹性计算 安全 Linux
阿里云服务器ECS安装宝塔Linux面板、安装网站(新手图文教程)
本教程详解如何在阿里云服务器上安装宝塔Linux面板,涵盖ECS服务器手动安装步骤,包括系统准备、远程连接、安装命令执行、端口开放及LNMP环境部署,手把手引导用户快速搭建网站环境。
|
7月前
|
Ubuntu Linux
如何在 Ubuntu 服务器上安装桌面环境(GUI)
如果你有任何问题,请在评论区留言。你会在服务器上使用 GUI 吗?参照本文后你遇到了什么问题吗?
1215 0
|
8月前
|
监控 Linux 网络安全
FinalShell SSH工具下载,服务器管理,远程桌面加速软件,支持Windows,macOS,Linux
FinalShell是一款国人开发的多平台SSH客户端工具,支持Windows、Mac OS X和Linux系统。它提供一体化服务器管理功能,支持shell和sftp同屏显示,命令自动提示,操作便捷。软件还具备加速功能,提升访问服务器速度,适合普通用户和专业人士使用。
2605 0

热门文章

最新文章