I have servers hosted at a hosting provider and they also host the DNS records for my domain names. Now I want to add subdomains that are resolved by my own DNS service. So for example:
- the hosting provider's name server knows the IP address for
econemon.com
- one of my servers knows the IP address for
ftp.econemon.com
Also,
- unknown or undefined subdomains should be routed to the same IP as the parent domain
- on failure of my DNS service, it would be great if the requests all go to the IP address that is associated with
econemon.com
, but I'm not sure how that should work.
Now, I've read through the Wikipedia articles on DNS to dust off my knowledge, but the part that leaves me confused is: how does a client know which server to ask for the IP address for ftp.econemon.com
? Does it get that information from the hoster? If so, do I have to register the subdomain there (and what would I need my name server for then)?