Jump to content

Automatic accounts setup in WHM with custom nameservers?


Crizomatic

Recommended Posts

Whenever I have WHMCS create a hosting account in WHM, it sets up the DNS zones using the typical nameservers, something like "ns123.websitewelcome.com".

 

How do I set it up so that it uses my custom nameservers instead? I've gone through the settings so many times I don't think I've missed anything, but surely this is possible?

 

This is the only thing I'm having trouble with, right now I've just been having to manually setup accounts which slightly defeats the point of WHMCS automating that process.

 

Thanks!

Chris

Link to comment
Share on other sites

Thanks for the reply

 

Is that the way to go about doing this? I looked at the templates previously, but I thought there may have been a less manual way of doing this.

 

How would I edit this to use my custom nameservers? Swap these out?

 

%nameserver%. = ns1.mydomain.com.

%nameserver2%. = ns2.mydomain.com.

 

What about %nameservera%, should I edit those?

 

; cPanel %cpversion%
; Zone file for %domain%
$TTL %ttl%
@      %nsttl%	IN      SOA     %nameserver%. %rpemail%. (
	%serial%	; serial, todays date+todays
	86400		; refresh, seconds
	7200		; retry, seconds
	3600000		; expire, seconds
	86400 )		; minimum, seconds

%domain%. %nsttl% IN NS %nameserver%.
%domain%. %nsttl% IN NS %nameserver2%.
%domain%. %nsttl% IN NS %nameserver3%.
%domain%. %nsttl% IN NS %nameserver4%.

%nameserverentry%. IN A %nameservera%
%nameserverentry2%. IN A %nameservera2%
%nameserverentry3%. IN A %nameservera3%
%nameserverentry4%. IN A %nameservera4%

%domain%. IN A %ip%

localhost.%domain%. IN A 127.0.0.1

%domain%. IN MX 0 %domain%.

mail IN CNAME %domain%.
www IN CNAME %domain%.
ftp IN CNAME %domain%.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated