Removing MX records for multiple domains

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 fixesTechnical

Tags:

About the Author: InstaCarma is a provider of Enterprise Class Solutions for the Hosting Industry

RSSComments (0)

Trackback URL

Leave a Reply

Get Adobe Flash playerPlugin by wpburn.com wordpress themes
InstaCarma provides outsourced web hosting technical support, helpdesk management, datacenter automation, cloud service management. Sales - 1800 810 6547 - visit www.instacarma.com