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