歡迎您光臨本站 註冊首頁

linux下Bind域名伺服器的安裝

←手機掃碼閱讀     火星人 @ 2014-03-09 , reply:0
剛做了一個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]


[火星人 ] linux下Bind域名伺服器的安裝已經有100次圍觀

http://coctec.com/docs/linux/show-post-53938.html