Mobile app version of vmapp.org
Login or Join
Shanna517

: How can I create lots of sub-domains each one with its own IP address? I have an application that has a lot of worker servers, and the servers number is increasing with time, I want to assign

@Shanna517

Posted in: #Dns #Subdomain

I have an application that has a lot of worker servers, and the servers number is increasing with time, I want to assign a sub-domain for each one of these servers, for example: srv1.domain.com ... srv100.domain.com, my main goal is to serve files from them.

Beside creating an A DNS record for each one of these servers, is there a better way to do this ?

I checked the DNS records for a domain that has a similar setup, I've found that the root domain doesn't have any A records for the sub-domains, but the sub-domains have, for example:

Using dig:

$ dig rootdomain.com ANY

It showed the NS records without any A records at all for the sub-domains, but

$ dig srv1.sub.rootdomain.com ANY

Showed an A record pointing to the server, how is that possible ? and how can I have a similar setup ?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Shanna517

1 Comments

Sorted by latest first Latest Oldest Best

 

@Ann8826881

You seem to be on the right path. If you intend to give each server an IP address, then you will need to create an A record for each server/sub-domain.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme