Skip to main content
Tweeted twitter.com/#!/StackWebmasters/status/532770721596846081
added example
Source Link
Pierre
  • 195
  • 1
  • 6

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 ?

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 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 ?

Source Link
Pierre
  • 195
  • 1
  • 6

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 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 ?