Save 15% on Instant Deploy Bare-Metal Servers in 26 Global Markets with Coupon Code: EdgeSave

How do I rebuild/restore the named.conf file on a Direct Admin server?

1) SSH to server as root.

2) cd /etc

3) cp named.conf named.conf.BAK

4) wget -O /etc/named.conf

5) then run:
for i in `cat /etc/virtual/domains`; do { echo "zone \"$i\" { type master; file \"/var/named/$i.db\"; };"; }; done; >> /etc/named.conf

Share on Twitter
Share on Facebook