1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

DNS - SOA contains \'s

Discussion in 'Plesk for Linux - 8.x and Older' started by freaky@, Nov 20, 2006.

  1. freaky@

    freaky@ Regular Pleskian

    26
     
    Joined:
    May 2, 2006
    Messages:
    104
    Likes Received:
    0
    Hey there,

    got a very annoying problem with Plesk. Plesk enters the e-mail address of the customer in the DNS' SOA record. Whilst this is fine, it's not fine that it prefixes any .'s in the mailaddress before the @ with \'s.

    As far as I know backslashes are NOT allowed in SOA records. Our secondary DNS server (powerdns) therefore strips the \'s from the SOA record, causing the records not to be the same.

    This causes problems with registering domains for some extensions.

    Can anyone elaborate on these problems?
     
  2. igorx

    igorx Guest

    0
     
    DNS SOA email solution

    I've written a script to replace the SOA email addresses for all domains with one hostmaster@ourdomain.com e-mail. After updating the email records in the psa database it regenerates the zone files.
    #!/usr/bin/env bash

    mysql -u admin --password=`cat /etc/psa/.psa.shadow` -D psa -e 'UPDATE dns_zone SET email="hostmaster@netscan.hu";'
    mysql --skip-column-names -u admin -p --password=`cat /etc/psa/.psa.shadow` -D psa -e 'SELECT name FROM domains;' | awk '{print "/usr/local/psa/admin/sbin/dnsmng update " $l }' | sh


    Regard,
    Igor
     
  3. freaky@

    freaky@ Regular Pleskian

    26
     
    Joined:
    May 2, 2006
    Messages:
    104
    Likes Received:
    0
    Thanks, it's always nice to see a little more of the internals :).

    They already fixed powerdns (our secondary server, it can use mysql so I wrote a simple script that adds/removes the domains), so I don't have any use for it anymore.

    The backslash isn't in the actual DNS packet, it has something to do with the way DNS codes the characters. So plesk/bind is doing the right thing, otherwise there would be no way to tell some.one@domain.com from some@one.domain.com.
     
  4. igorx

    igorx Guest

    0
     
    You're right, but in my and many people's case on this forum it's better that a fixed mail address is in the soa record, not the client's address which might be on a remote server.
     
  5. freaky@

    freaky@ Regular Pleskian

    26
     
    Joined:
    May 2, 2006
    Messages:
    104
    Likes Received:
    0
    It would surely make things easier. But I would have to look up if we could do that, as some TLD's have stupid requirements and I believe some require e-mail addresses from other domains and the customer themselves. We usually don't host the mail, most of our customers run Windows 2003 SBS and the MX points straight to their Exchange servers. Would be nice if plesk got a backup MX functionality (from the GUI, I've seen people modifying the config the do it).

    Thanks again
     
Loading...