linux下Bind域名服务器的安装

本文涉及的产品
.cn 域名,1个 12个月
简介:
 刚做了一个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 ,如需转载请自行联系原作者


相关文章
|
5天前
|
Java Linux
java读取linux服务器下某文档的内容
java读取linux服务器下某文档的内容
16 3
java读取linux服务器下某文档的内容
|
1月前
|
网络协议 网络安全
基于bind软件部署DNS服务器
关于如何使用bind软件部署DNS服务器的教程,包括DNS服务器的类型、基于bind软件的部署步骤、验证DNS服务器可用性的指导,以及如何进行DNS正向解析的实现。
26 2
基于bind软件部署DNS服务器
|
16天前
|
Ubuntu Linux
Linux服务器的自动启动可以在哪里进行配置?
Linux服务器的自动启动可以在哪里进行配置?
72 3
|
2月前
|
Linux
Linux 服务器下载百度网盘文件
本教程指导如何使用 `bypy` 库从百度网盘下载文件。首先通过 `pip install bypy` 安装库,接着运行 `bypy info` 获取登录链接并完成授权,最后将文件置于指定目录并通过 `bypy downdir /Ziya-13b-v1` 命令下载至本地。
41 1
Linux 服务器下载百度网盘文件
|
24天前
|
存储 数据挖掘 Linux
服务器数据恢复—Linux操作系统网站服务器数据恢复案例
服务器数据恢复环境: 一台linux操作系统服务器上跑了几十个网站,服务器上只有一块SATA硬盘。 服务器故障: 服务器突然宕机,尝试再次启动失败。将硬盘拆下检测,发现存在坏扇区
|
1月前
|
存储 安全 Linux
离线Linux服务器环境搭建
【9月更文挑战第3天】在离线环境下搭建Linux服务器需按以下步骤进行:首先确定服务器用途及需求,准备安装介质与所需软件包;接着安装Linux系统并配置网络;然后设置系统基础参数,如主机名与时区;安装必要软件并配置服务;最后进行安全设置,包括关闭非必要服务、配置防火墙、强化用户认证及定期备份数据。整个过程需确保软件包的完整性和兼容性。
|
1月前
|
存储 监控 Linux
监控Linux服务器
详细介绍了如何监控Linux服务器,包括监控CPU、内存、磁盘存储和带宽的使用情况,以及使用各种系统监控工具如vmstat、iostat、sar、top和dstat来分析系统性能,并推荐了一些开源监控系统。
32 0
监控Linux服务器
|
2月前
|
Shell Linux Perl
linux服务器自动生成本地快照
【8月更文挑战第28天】本文介绍了在Linux服务器上通过两种常见方式创建本地快照的方法:Btrfs文件系统与LVM。Btrfs原生支持快照功能,操作简单快捷;LVM则提供了灵活的逻辑卷管理,可在不影响原始数据的情况下创建快照。文章详细列出了创建、查看、挂载及清理快照的具体步骤,并提供了一个自动化的Shell脚本示例,便于用户根据需求定期创建快照并清理过期快照。
26 3
|
1月前
|
监控 安全 网络协议
快速配置Linux云服务器
快速配置Linux云服务器
|
2月前
|
缓存 Linux 调度
Linux服务器如何查看CPU占用率、内存占用、带宽占用
Linux服务器如何查看CPU占用率、内存占用、带宽占用
150 0
下一篇
无影云桌面