cyberpanel icon indicating copy to clipboard operation
cyberpanel copied to clipboard

[BUG] Can Not add DNS records....display and delete work fine.

Open cagivacode opened this issue 4 months ago • 5 comments

Operating system: Ubuntu 20.04 LTS

CyberPanel version: Current Version: 2.3 Build: 7 Current Commit: bfc2fc4c9521427dc3b58a5bd38f53814cc0d22a

Not sure when this started, I do not add records that often, I do not use cloudflare.

The Add/Modify DNS Zone page works --- record are successfully displayed (fetched) --- delete records works as intended.

Trying to add any kind of record does not work --- the records are simply re-fetched with nothing added -- no error is displayed.

I have checked the database table (records) directly and the new record is not added.

The log file shows this at every attempt: [10.20.2024_23-52-34] get() returned more than one Records -- it returned 3! [createDNSRecord] [10.20.2024_23-54-07] Records matching query does not exist. [createDNSRecord]

Note: I have been making DNS changes this week: added DNSEC and upgraded PDNS (4.9.2). I needed to add secondary DNS servers that use the catalog feature.

I believe PDNS has added new tables in the process, but I don't think the RECORD table was changed in that schema.

id Primar domain_id name type content ttl prio change_date disabled ordername auth domainOwner_id

I have looked at the Cyberpanel code, but I can't see the query that is causing the error.

any help would be appreciated

cagivacode avatar Oct 21 '24 20:10 cagivacode