Dynadot .com transfer sale, only $10.12 with coupon code DYNA12, available while supplies last, ends October 31, 2026.

Programmatic subdomains

SpaceshipSpaceship
SpaceshipSpaceship
SpaceshipSpaceship
Watch

yeppers

VIP Member
Impact
109
Hey all,

Just wandering if anybody knew how to programmatically create a sub-domain, or had a few links to a tutorial.

I've heard some things about using the .htaccess file to do this, but am not sure how to programmatically create a subdomain, ie create a site like dot.tk which provides free subdomains instantly.

Thankyou.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
you mean like an API to create subdomains?
 
0
•••
yes thanks Amnezia.
 
0
•••
you need to create a script that will interact with your servers dns server to create them, this would very for each different dns server.
 
0
•••
you might wanna take a look at cPanel pro if you use cpanel, i believe it provides some sort of php interface
 
0
•••
Depending on what you want to do you might want to have a look at using DNS wildcards. It can save you a lot of haste fiddling with the name servers.
 
0
•••
Amnezia said:
you might wanna take a look at cPanel pro if you use cpanel, i believe it provides some sort of php interface

Yeah you just create a script which includes the cpanel username and password, allows it to " login " and create the subdomain directly.
 
0
•••
there are scripts for cpanel to do it.

PJ
 
0
•••
DomainEasy: white label portfolios are live. Enable yours.

We're social

Escrow.com
Spaceship
Escrowly
CryptoExchange.com
Domain Recover

NamePros updates

Parking: find your domains by pasting a list
You can now paste a list of domain names into the search box at the top of the Parking menu. Put one name on each line. Your domain list...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back