Discuss Multi subdomain configuration in the DNS forum on Dev Shed. Multi subdomain configuration DNS forum discussing issues, servers, and configurations. The Domain Name System (DNS) is what the Internet uses to translate website names into IP addresses.
Receive the tools necessary to be the rock star of your field. Our 12-month program teaches you the evolving world of multi-channel marketing as well as the complex issues and opportunities found in the industry.
ASP Free and Iron Speed Designer are giving away $5,500+ in FREE licenses. Iron Speed's RAD CASE toolset can save up to 80% of your coding time. One free license per week, one perpetual license per month! Download and Activate to enter!
Web development can be a daunting task, even for specialists. There is a lot of information to absorb and a lot of technologies to learn in order to manage a superior website. When trying to learn the ropes, developers need a reliable source to introduce new ideas that can be easily implemented. When working on large projects, even web veterans may run into a technology or an aspect of a technology that they are unfamiliar with.
Posts: 10
Time spent in forums: 7 h 43 m 5 sec
Reputation Power: 0
Multi subdomain configuration
its possible to configure dns that give subdomains the same ip but with differents ports mean
alfa.example.com 10.10.10.1 :550
beta.example.com 10.10.10.1 :560
the subdomains are not for web application all of them , cuz some of them are been used for terminal machine, other for mail server and others. for this reason, i need different port and i dont want to make the port fixed in the local machine .
Posts: 6,456
Time spent in forums: 1 Month 2 Weeks 4 Days 2 h 6 m 8 sec
Reputation Power: 6144
There is no DNS equivalent for port numbers, the local client must know the port number before initiating the connection. The only way to not have to enter the port number manually is to use the application's default port.
If all of your applications run on different port numbers you could set up a router with port forwarding at 10.10.10.1 and it would be able to distribute the requests to different physical servers based on the port number, regardless of which domain the request uses. However, there is no way for the router to automatically determine the port number based on the incoming domain name. This also will not allow you to run multiple applications on the same port number (even if they are on different domains).
A proxy server could direct requests for different domains to different ports IF the protocol supports it. For example, HTTP/1.1 does support this because the domain name is included in the request, however many other protocols do not. I do not know exactly which protocols do and do not support this.
It sounds like the best approach for you would be to get separate IP addresses for each server so that you can use the application's default port.
Also please note that most of the people on here are located in the US, so don't be surprised if you don't get any responses between 2:44 AM and 7:41 AM; most of us are sleeping. Also this is the biggest holiday weekend of the whole year in the US, so these forums will probably be slow for the next three or four days.
Posts: 10
Time spent in forums: 7 h 43 m 5 sec
Reputation Power: 0
Quote:
Originally Posted by E-Oreo
There is no DNS equivalent for port numbers, the local client must know the port number before initiating the connection. The only way to not have to enter the port number manually is to use the application's default port.
If all of your applications run on different port numbers you could set up a router with port forwarding at 10.10.10.1 and it would be able to distribute the requests to different physical servers based on the port number, regardless of which domain the request uses. However, there is no way for the router to automatically determine the port number based on the incoming domain name. This also will not allow you to run multiple applications on the same port number (even if they are on different domains).
A proxy server could direct requests for different domains to different ports IF the protocol supports it. For example, HTTP/1.1 does support this because the domain name is included in the request, however many other protocols do not. I do not know exactly which protocols do and do not support this.
It sounds like the best approach for you would be to get separate IP addresses for each server so that you can use the application's default port.
Also please note that most of the people on here are located in the US, so don't be surprised if you don't get any responses between 2:44 AM and 7:41 AM; most of us are sleeping. Also this is the biggest holiday weekend of the whole year in the US, so these forums will probably be slow for the next three or four days.
what about implement serv record server i guess it will resolve my problem if the client support it too but i wonder if the usual DNS cache can work with the srv recorde server in the same way it does with the remote DNS server or does it need a specified DND cache ?
thx for reply
Posts: 6,456
Time spent in forums: 1 Month 2 Weeks 4 Days 2 h 6 m 8 sec
Reputation Power: 6144
Interesting, I didn't know about that type of record. Yes, if the client has support for using a SRV record then I imagine that would do exactly what you need. I'm not sure how widely support this is at the client level, but it seems that bind supports it, so I imagine that server side it is pretty widely supported.
As far as caching go, it depends on the cache. I don't know what you mean by a "usual" DNS cache; the operating system level DNS cache? If serving SRV records is widely supported then I imagine that most DNS caches will support it.