Removing MX records for multiple domains
admin | Nov 23, 2009 | Comments 0
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.
Filed Under: Quick fixes • Technical
About the Author: InstaCarma is a provider of Enterprise Class Solutions for the Hosting Industry

1800 810 6547