刚做了一个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 operatingsystems 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 operatingsystems 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 timeyou 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 thePerl 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 LinuxOperating system version: 3.0ES***********************************************************************Webmin uses its own password protected web server to provide accessto the administration programs. The setup script needs to know :- What port to run the web server on. There must not be anotherweb 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): //服务端口,缺省为10000Login 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....doneCreating access control file....doneInserting path to perl into scripts....doneCreating start and stop scripts....doneCopying config files....doneConfiguring Webmin to start at boot time..Created init script /etc/rc.d/init.d/webmin..doneCreating uninstall script /etc/webmin/uninstall.sh ....doneChanging ownership and permissions ....doneRunning postinstall scripts ....doneAttempting 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 webbrowser 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 ,如需转载请自行联系原作者