After some discussions with some colleagues, it was eventually decided that an attempted revival was out of the question. Rebuild time!
The weapon OS of choice was CentOS (of course), and an attempt was made to salvage whatever data and configurations possible from the old server.
We were luckily able to retrieve the named.conf and the databases from the dead server using a SLAX Live CD.
0. Assuming a Clean install of CentOS and Ethernet / other system configurations complete - log in as root
1. The first thing is to update the files to the latest version
yum update
2. Install the following packages
yum install bind bind-chroot bind-libs bind-utils
It should be noted that the old DNS server did not use the chroot security option, which is essentially a 'jail' to prevent full system access to a hacker using any bind exploit. This meant that the locations of the conf file and the databases needed to be changed for the new install.
3. Rename the original named.conf
mv /var/named/chroot/etc/named.conf /var/named/chroot/etc/named.conf.orig
4. Copy the named.conf which was taken from the old server
cp /location/of//backup/named.conf /var/named/chroot/etc/
5. Copy the zones
cp /location/of/backup/zones/* /var/named/chroot/var/named/
6. Check to see if the named service is operational
service named restart
Once it starts without problems, proceed to step 7
Troubleshooting? Useful resources here:
http://www.wains.be/index.php/2007/12/13/centos-5-chroot-dns-with-bind/
http://www.howtoforge.com/traditional_dns_howto
7. Set named to automatically start on reboot.
chkconfig named on
8. Configure the firewall
If the server is only being used for DNS, only allow incoming DNS and perhaps SSH/Telnet.
system-config-securitylevel-tui
Set firewall to Enabled (*)
Go to Customize
Leave Trusted Devices and Masquerade Devices empty (dependent on your configuration)
Add to "other ports" section
53:tcp 53:udp
Check box by either SSH or Telnet (whichever preferred)
Save and exit
9. Check to see if service is operational
service named status
This setup was based on a restore, so a new install of Bind will need additional tweaking dependent on the environment.
10. Further permission fix
cd etc
*Backup named.conf
cp -p named.conf named.conf.bkp
cd /var/named/chroot/var/named
chown named:named db.*
cd /var/named
chown -R named:named ./chroot
chmod g+w /var/named/chroot/var/named
-n
will this restore the whm/cpanel mysql databases as well?
ReplyDelete
Delete- Xoẹt.
Một tiếng nhỏ vang lên, hai đạo lực lượng sau khi chạm vào nhau, không gian xung quanh chợt lóe lên, tám thanh Âm Dương Kiếm tràn ngập kiếm mang công kích về phía Hổ Mãnh.
- Có thể ngăn cản được một đòn của ta, quả nhiên là có chút thực lực.
Nhạc Thành lẩm bẩm thì thầm, tu vi bát tinh Đấu Thánh của Hổ Mãnh đúng là không tệ, có thể ngăn cản một đòn của Âm Dương Kiếm đúng là không hề kỳ quái.
Lúc này Hổ Mãnh chăm chú nhìn Nhạc Thành, trong lòng hắn thầm than không thôi, có thể ngăn cản được một đòn của mình, thực lực của Nhạc Thành đúng là vô cùng qudongtam
mu private
tim phong tro
http://nhatroso.com/
nhac san cuc manh
tổng đài tư vấn luật
http://dichvu.tuvanphapluattructuyen.com/
văn phòng luật
tổng đài tư vấn pháp luật
thành lập công ty
http://we-cooking.com/
chém gió
trung tâm ngoại ngữỷ dị. Gần đây tam đại thú tộc cùng với Hắc Ám Thần Điện mọi người đang nói tới Nhạc Thành, hậu thiên của Nhạc Thiên, hắn vẫn không hề để ý tới, không ngờ người này thực lực lại mạnh đến mức thế này.
- Tiểu tử, hôm nay ngươi tới tận đây, ta hôm nay giết ngươi coi như trừ họa cho tdmt.
Hổ Mãnh lúc này tràn ngập sát ý, lập tức bắn về phía Nhạc Thành, đấu khí ngập tràn.
I'm not sure, this rebuild was not for an external hosting service.
ReplyDeleteMaybe you can check here for help: http://docs.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/WebHome
just information we only provide information for those who need it
ReplyDelete