Modify the default DNS records
#1
Modify the default DNS records
How can I modify the default DNS records for new domains. I want to add a CNAME record that points panel.clientsdomain.com to the Sentora panel at panel.mydomain.com. Is there a way that I can modify the default zone file that all new domains use to automatically include that record or do I have to add it to each new domain manually?
Reply
#2
RE: Modify the default DNS records
You may be able to edit the table x_dns_create to do what you wish. But i am not sure if this also will make the proper vhost addition. I think that will require custom coding of the core files.
(testing now to see if a simple A record will work)
Technically this should work as any domain/subdomain that points to the server IP should automatically load the panel login screen.
-TGates - Project Council

SEARCH the Forums or read theĀ DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
#3
RE: Modify the default DNS records
(03-02-2015, 01:48 PM)TGates Wrote: You may be able to edit the table x_dns_create to do what you wish.

I added an A record to the x_dns_create table and used the :IP: variable as the target. It works great. The only difficulty I ran into was finding out the root mysql password :p but I finally found it in /root/passwords.txt

Thanks for the help!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
SRV Records? Surf3rDud3 1 6 ,611 12-22-2016, 10:16 AM
Last Post: Surf3rDud3
DNS Manager - Can't create records with LAN IPs phoenix-ck 4 16 ,513 02-22-2016, 09:19 PM
Last Post: Me.B
Cant set TXT records... Tango 3 11 ,844 09-15-2015, 01:35 AM
Last Post: Tango

Forum Jump:


Users browsing this thread: 1 Guest(s)