Skip to main content

How do I remove %rpemail% SOA from zone template?

Comments

17 comments

  • cPanelLauren
    You cannot remove this from the zone file. It's an RFC requirement, and must be in the zone file's SOA record, you can read the RFCs that cover this: RFC 1034 - Domain names - concepts and facilities and RFC 1035 - Domain names - implementation and specification
    0
  • karom43
    @cPanelLauren - thank you for letting me know about that. Can I then use a different email address than the main cPanel contact email?
    0
  • cPanelLauren
    I don't believe you can, that information is pulled directly from what's input here: Basic WebHost Manager Setup | cPanel & WHM Documentation
    0
  • PeteS
    I don't believe you can, that information is pulled directly from what's input here: user@domain.tld for the RNAME instead of the recommended user.domain.tld format? And why use the server contact instead of hostmaster.example.com (of course that would require it be valid, or sent to root if hostmast@ isn't valid)? RFC 2142: Mailbox Names for Common Services, Roles and Functions
    0
  • quietFinn
    1- I was going to replace %rpemail% with a hard-coded value (hostmaster.mydomain.com), but will that be allowed in the WHM template editor? If not, can I hard-code it in a file, and will that cause issues and/or be overwritten at some point?

    Yes you can replace that with a hard-coded value.
    0
  • PeteS
    Yes you can replace that with a hard-coded value.

    Thanks, I hadn't tested yet when I posted. It works. @cPanelLauren Still want to know if/when cPanel overwrites template files, or if editing makes a .local file of something.
    0
  • quietFinn
    cPanel does not overwrite Zone Templates, I've used edited templates for years and they never change. Instructions here:
    0
  • PeteS
    @cPanelLauren I'd be interested in your thoughts on Qs 2 & 3 above. Thanks!
    0
  • cPRex Jurassic Moderator
    @PeteS - Lauren doesn't hang out here much anymore, so you'll have to settle for my thoughts! 2 - Can you let me know what you mean when you say "control" ? What behavior are you looking for specifically? 3 - This one I'm not sure on. I'll see if I can find out more.
    0
  • quietFinn
    2- I would like control of these vars, especially %ttl%, %nsttl%, and %rpemail%. What can you tell me about that?

    I have no idea where those variables come from, but you can replace any or all of them with hard-coded values in the Zone templates.
    0
  • cPRex Jurassic Moderator
    For question 3, that's just something that happens in the interface. If you check the zone file itself you'll see the "@" is replaced with "."
    0
  • PeteS
    @PeteS - Lauren doesn't hang out here much anymore, so you'll have to settle for my thoughts!

    I wondered about that... and I almost tagged you also, but that would have been annoying. ;)
    I have no idea where those variables come from, but you can replace any or all of them with hard-coded values in the Zone templates.

    By "control" I meant knowledge of where they are set/come from. Like how %rpemail% is set by the contact email. I assumed the twp TTLs are hard-coded somewhere on cPanel but wanted to ask if there was any reliable way to modify that. I do know they can be changed in the templates, but when I see a token I immediately want to know what connects to it.
    For question 3, that's just something that happens in the interface. If you check the zone file itself you'll see the "@" is replaced with "."

    Ah, ok. I should have checked that. Still, "hostmaster" is recommended. Maybe an option to use that default instead of the contact email in the future. Not a big enough deal for me to open a feature request. Just a thought. I assume we can use either format in the templates? (host.domain.tld or user@domain.tld)
    0
  • cPRex Jurassic Moderator
    If you're putting it directly in the template, I'd stick with the email.address.tld format juuuuuuuuust in case.
    0
  • quietFinn
    I assume we can use either format in the templates? (host.domain.tld or user@domain.tld)

    Just because you can doesn't mean you should, if you look in RFCs and other documents they all say something like: [QUOTE] 4.2 The RNAME Value The RNAME is to publish a mail address of a person or role account dealing with this zone with the "@" converted to a ".". The best practice is to define (and maintain) a dedicated mail alias "hostmaster" [RFC 2142] for DNS operations.
    That's in:
    0
  • PeteS
    If you're putting it directly in the template, I'd stick with the email.address.tld format juuuuuuuuust in case.

    Ok, hostmaster.domain.tld it is. I will do a test both ways and see what up in the actual account.db file, and report back.
    0
  • PeteS
    Just because you can doesn't mean you should, if you look in RFCs and other documents they all say something like: That's in:
    0
  • PeteS
    If you're putting it directly in the template, I'd stick with the email.address.tld format juuuuuuuuust in case.

    Confirming: Using the format hostmaster.domain.tld in a template results in it showing as hostmaster@domain.tld in DNS Zone Manager, but the actual record in /var/named/ domain.tld.db is still hostmaster.domain.tld and of course propagates to nameservers as such. I didn't bother with the "@" format in a template because, why...? :) Thanks for the help.
    0

Please sign in to leave a comment.