named config: how do I remove an MX record?


Results 1 to 2 of 2

Thread: named config: how do I remove an MX record?

  1. #1
    Join Date
    Sep 2002
    Posts
    157

    named config: how do I remove an MX record?

    I've sort of been thrown into this one. I've never admined a DNS server before.

    Anyway, we're running named and I think I found the config in /var/named/

    When I 'vi domain.com.db' I see entries like the following:

    Code:
                       IN      MX      20      mail2
    mail2           IN      A       xxx.xxx.xx.xxx
    So I commented both lines out by putting a semi-colon in front of them. I then restarted named by running '/etc/init.d/named restart', but even on that box, which runs 127.0.0.1 as its primary DNS server, I can still resolve the domain mail2.domain.com.

    What am I missing? What's required to do this? I'd be equally happy removing the record or simply changing the mail2 IP to a different server.

    Thanks.
    Last edited by shakin; 05-31-2005 at 04:19 PM.

  2. #2
    Join Date
    Nov 2003
    Posts
    105
    Did you change the serial number after you made the changes and before restarting named? This must be done to let named know that you did some changes.

    Regards

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •