PowerDNS Add extra NS records to all existing domains and update records

Insert an extra NS records for all domains
Replace ns4.mynameserver.com with the FQDN of your nameserver you want to add.

Replace mynameserver.com with your FQDN

Replace old IP with new IP for all records
11.11.11.11 -> 22.22.22.22

Mass update all SPF records

example spf for record _spf.maildomain.com

1 reply
  1. Arminder Singh Girgla
    Arminder Singh Girgla says:

    Replace old IP with new IP for all records
    11.11.11.11 -> 22.22.22.22
    UPDATE records SET content=’11.11.11.11′ WHERE content = ‘22.22.22.22’

    The update query has the IPs reversed. It should be:
    UPDATE records SET content=’22.22.22.22′ WHERE content = ‘11.11.11.11’

    Reply

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *