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 ,如需转载请自行联系原作者


相关文章
|
1月前
|
Ubuntu Linux
任何Ubuntu用户都应安装的四大Linux应用程序
当然,这款程序不需要太多介绍。我们面对的是网上最庞大最完整的多媒体中心,由于丰富的插件,我们能够高度细化地定制其每一项功能。这是我们的Linux发行版不可或缺的必备软件。 我们可以通过运行以下命令来轻松安装Kodi:sudo apt install kodi。
|
1月前
|
Ubuntu 物联网 Linux
从零安装一个Linux操作系统几种方法,以Ubuntu18.04为例
一切就绪后,我们就可以安装操作系统了。当系统通过优盘引导起来之后,我们就可以看到跟虚拟机中一样的安装向导了。之后,大家按照虚拟机中的顺序安装即可。 好了,今天主要介绍了Ubuntu Server版操作系统的安装过程,关于如何使用该操作系统,及操作系统更深层的原理,还请关注本号及相关圈子。
|
23天前
|
弹性计算 安全 Linux
阿里云服务器ECS安装宝塔Linux面板、安装网站(新手图文教程)
本教程详解如何在阿里云服务器上安装宝塔Linux面板,涵盖ECS服务器手动安装步骤,包括系统准备、远程连接、安装命令执行、端口开放及LNMP环境部署,手把手引导用户快速搭建网站环境。
|
1月前
|
安全 Ubuntu Linux
如何安装Linux操作系统?
此时,您可以选择重新启动计算机,然后从硬盘上的Linux系统启动。以上是一个大致的安装过程。请注意,不同的Linux发行版可能会在细节上有所差异,因此在进行安装之前,请确保您阅读并理解了相应发行版的安装指南或文档。
|
1月前
|
Ubuntu Linux 数据安全/隐私保护
Win10安装Linux子系统教程!如何在Win10系统中安装Ubuntu!
登录系统后,输入cd /返回上一级,然后再输入“ls”查看一下系统文件目录,看看对不对!
|
1月前
|
Ubuntu Linux Shell
手把手教你安装适用于Linux的Windows子系统——Ubuntu
重启完成,你看看重新打开Ubuntu是不是发生了变化,等待几分钟,系统配置完成,根据提示设置用户名和密码即可
|
1月前
|
存储 Ubuntu Linux
安卓手机免root安装各种Linux系统:Ubuntu, Centos,Kali等
此外还可以安装Slackware、Archstrike等系统,还可以通过github查找方法安装更多有趣的东西。 昨日小编就是通过Termux安装的Kali Linux工具包。
|
1月前
|
Ubuntu 网络协议 Unix
在虚拟机中安装Linux Ubuntu系统指南
通过点击【浏览】按钮,您可以更改Ubuntu的安装位置。为确保系统稳定,建议避免将Ubuntu安装在C盘。您可以在D盘或其他磁盘中创建一个名为“ubuntu”的文件夹,并选择该文件夹作为安装位置,然后点击【下一步】继续。
|
2月前
|
Java Linux 网络安全
Linux云端服务器上部署Spring Boot应用的教程。
此流程涉及Linux命令行操作、系统服务管理及网络安全知识,需要管理员权限以进行配置和服务管理。务必在一个测试环境中验证所有步骤,确保一切配置正确无误后,再将应用部署到生产环境中。也可以使用如Ansible、Chef等配置管理工具来自动化部署过程,提升效率和可靠性。
282 13
|
1月前
|
Ubuntu Linux 数据安全/隐私保护
Windows上快速安装Linux子系统Ubuntu
Installing, this may take a few minutes...WslRegisterDistribution failed with error: 0x800701bcError: 0x800701bc WSL 2 ?????????????????? https://aka.ms/wsl2kernelPress any key to continue... 原因是 wsl1 升级到 wsl2 之后,内核却没有升级。 解决:下载最新的wsl安装包(wsl安装包)

热门文章

最新文章