Account Questions

MX Record: How can I update my MX record in BIND?

1. Open the zone file for your domain in your favorite text editor.

2. Locate the line that reads:

mydomain.com.     IN MX   10   mymailserver.mydomain.com.

NOTE: The weighting number after the MX keyword may be different.

3. Change your MX record to read:

mydomain.com.     IN MX   10   complex1.ns2.enterprisevpssolutions.com.
mydomain.com.     IN MX   20   complex1.ns1.enterprisevpssolutions.com.

4. If you have multiple MX records, comment them out by placing a single semi-colon ahead of those lines, leaving only the MX records created in step 3 uncommented.

For example:

mydomain.com.     IN MX   10   complex1.ns2.enterprisevpssolutions.com.
mydomain.com.     IN MX   20   complex1.ns1.enterprisevpssolutions.com.
;mydomain.com.     IN MX   10   mymailserver-2.mydomain.com.
;mydomain.com.     IN MX   10   mymailserver-3.mydomain.com.

5. Save your zone file, and run the command:

For BIND 4.9 & 8.x: ndc reload

For BIND 9.x: rndc reload

Related articles

Was this article helpful?