Oops! It appears that you have disabled your Javascript. In order for you to see this page as it is meant to appear, we ask that you please re-enable your Javascript!

Issue :

How to remove the MX records from the DNS zone file for multiple domains on the server?

Solution :

Create a file, say removemx and put the list of domains in it.

Now, run the following command :

for i in `cat /var/named/removemx`; do sed -i ‘/MX/d’ $i.db; done;

Restart the named service. That should be it.


Shares
Contact Us On WhatsApp