wrong dns txt subodomains records

Stefan

Member
Jul 24, 2003
6
0
151
cPanel Access Level
DataCenter Provider
Hello,

We have a problem with cpanel that is regenerating dns zones and is adding a new record to all subdomains, something like this:
...
subdomain3 IN A ip.ip.ip.ip
subdomain4 IN A ip.ip.ip.ip
subdomain1 IN TXT ""
subdomain2 IN TXT ""
subdomain3 IN TXT ""
subdomain4 IN TXT ""
...

for all existing subdomains.


How can we stop this kind o behavior?
We have some automate tools that brake because of this lines

--
Stefan
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
I'm confused about regenerating DNS zones. What specifically is regenerating the DNS zones? Those entries appear to possibly be related to SPF records since those are normally TXT entries, but these entries are blank. Do you have any modifications to templates or API hooks you are using for domain or zone creation?
 

Stefan

Member
Jul 24, 2003
6
0
151
cPanel Access Level
DataCenter Provider
I have done more testing and the problems appears when we recreate(from backup or transfer) an account that has subdomains, on the restore page i have this section :
"
Updating SPF Records

Done

"
i was thinking also about spf, but i dont remember any option in cpanel how to activate or deactivate this record.


Thank you


--
Stefan
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
The option would be in cPanel > Email Authentication area for activating or deactivating SPF records.
 

Stefan

Member
Jul 24, 2003
6
0
151
cPanel Access Level
DataCenter Provider
Found it, and it was enabled.

How can i disable it for all accounts on a server.

I dont use this feature from here, we have a custom spf record added directly in dns zone templates.

Thank you

--
Stefan
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
Hi Stefan,

You could try the following:

Code:
for $i in `ls -A /var/cpanel/users` ;do /usr/local/cpanel/bin/spf_uninstaller $i ;done
You'd probably also want to uncheck Email Authentication in WHM > Feature Manager area for whatever feature list you are using for these accounts so that they cannot re-add the records.
 

Stefan

Member
Jul 24, 2003
6
0
151
cPanel Access Level
DataCenter Provider
This script is removing also my current spf settings and not the empty one, it was expected,
its ok i can work around this.

Thank you

--
Stefan