กรุณาปิด โปรแกรมบล๊อกโฆษณา เพราะเราอยู่ได้ด้วยโฆษณาที่ท่านเห็น
Please close the adblock program. Because we can live with the ads you see


thxf.org

วิธีการทํา DirectAdmin mass update DNS server

There can be multiple reasons why you want to update the DNS records of every domain at once. This is only possible to do when you have direct SSH access to the server. If you do not you can ask us (your server administrator) to run the commands. Do note that these commands can only be run for all domains on the server and all domains of one account. Furthermore, this is only possible on your own server or a server that is managed by Yourwebhoster.eu.

DirectAdmin mass update DNS server
In this example we assume that you want to replace the old name server ns1.old.com with the new one: ns1.new.com. And ns2.old.com with ns2.new.com. Replace the nameservers with yours and run the following commands:

Bash:
# Reconfigure the settings in DirectAdmin for new domains
cd /usr/local/directadmin/data/users
perl -pi -e 's/ns1.old.com/ns1.new.com/' */user.conf
perl -pi -e 's/ns2.old.com/ns2.new.com/' */user.conf
perl -pi -e 's/ns1.old.com/ns1.new.com/' */reseller.conf
perl -pi -e 's/ns2.old.com/ns2.new.com/' */reseller.conf

# Reconfigure existing DNS entries. Change directory to the location of the DNS files.
cd /var/named
perl -pi -e 's/ns1.old.com/ns1.new.com/' *.db
perl -pi -e 's/ns2.old.com/ns2.new.com/' *.db

# Make sure that DirectAdmin generates a new serial for every domain.
echo "action=rewrite&value=named" >> /usr/local/directadmin/data/task.queue
/usr/local/directadmin/dataskq
credit
 

กระทู้ที่คล้ายกัน

  • บทความ บทความ
เริ่มต้นเลยนะครับ บทความโดยคุณ iCez เตรียมอุปกรณ์กันก่อน - หาเครื่องที่จะเอามาทำ dns server เงื่อนไข spec ไม่ต้องแรงมากก็ได้ (atom ram 2gb ก็เอาอยู่ครับ) แต่ขอนิ่งๆ...
ตอบกลับ
0
จำนวนการดู
1พัน
thxf.org 
  • บทความ บทความ
ติดตั้ง MRTG CentOS 6.4 / 7 กับ Directadmin MRTG หรือ Multi Router Traffic Grapher คือ คือ Monitor Tool สำหรับ Linux ที่จะทำหน้าที่ดักจับ Packet ที่ผ่าน Interface ที่กำหนด นำค่าที่ได้...
ตอบกลับ
0
จำนวนการดู
1พัน

กรุณาปิด โปรแกรมบล๊อกโฆษณา เพราะเราอยู่ได้ด้วยโฆษณาที่ท่านเห็น
Please close the adblock program. Because we can live with the ads you see
กลับ
ยอดนิยม ด้านล่าง