How to Custom Subdomain DNS IP Address

defomaz

Verified User
Joined
Jun 26, 2008
Messages
130
Halo,

I can create DNS custom IP main domain for just copy dns_a.conf to custom folder - its done
next I want to set custom ip for every subdomain created from DA user level, but it seem no documentation about this.

is this feature available? and how to do?

Thank you
 
I hope this feature available.
I need this feature because I use HAProxy.
Clients => HAproxy => Webserver

Why using Haproxy?

Problem come when I moving all DA user to new server.
Rather than waiting DNS Propagation I think its better use haproxy to switch ip instantly.

all domain first pointing to HaProxy IP Address

www = Haproxy IP
domain.com. = HaProxy IP

setting above done using custom dns_a.conf

but for subdomain seem not available for customization

Im sory for my words I'm not native english.

Thank you
 
Hello,

Use this:

- custom script for saving a dns zone
/usr/local/directadmin/scripts/custom/dns_write_post.sh
http://www.directadmin.com/features.php?id=450

- custom script: dns_create_post.sh, dns_delete_post.sh
/usr/local/directadmin/scripts/custom/dns_create_post.sh
/usr/local/directadmin/scripts/custom/dns_delete_post.sh
http://www.directadmin.com/features.php?id=506

to update IPs for subdomains in a zone after it was submitted. Or customize user/dns_control.html template file of a skin to suggest a needed IP for subdomains.

- How to customize one portion of a DA skin, without needing to create your own skin.
http://help.directadmin.com/item.php?id=295
 
Back
Top