Discussion Locked

DNS Entry w/ IP + Port

0 helpful
9 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I am currently my own dns server and would like to add entry to forward a user to a specific port on my website. For example if I own the domain domain.com, and when someone types in web.domain.com they get to 168.10.10.10:5400. I tried adding a host entry, but thats only has entries for an ip address not port. Any help is appriciated.

9 replies

by some guy in seattle

You won't be able to do this with a DNS server. The DNS server exists just to resolve a host name to an IP address. For this you will need to have some kind of device that performs Port Address Translation, such as a router with PAT enabled or a firewall that can perform NAT/PAT.

Hope that helps -

by arhemed

I have a router, but all it does is forward ports to specific addresses. I have one server which is DNS, Webserver and ftp vnc and some other apps which host to specific ports. They all host to the same ip address, but differnt ports. I want to make mail.domain.com to forward to specific address plus port and vnc.domain.com to forward to another ip plus port. Any software that can do this, that will work with DNS? Thanks for the tip.

by curious_george

What I do is forward the request to an IIS server and use the host header name to accept the request for a specific URL on port 80, then redirect the client to another URL using IIS. In the redirected URL settings you can include a port number.

Works well, if you need more info let me know.

by curious_george

Let me clarify one thing, this will only work for http requests, and I don't remember right this sec ifit will work for ftp, but I doubt it. It definitely will not work for vnc. As stated in answer #1 DNS ONLY resolves names to IPs. If you have access to some commercial grade routing equipment you could program the units to provide this redirection. But it sounds like that is far beyond your current skill set.

by arhemed

Curious George, your a fucking moron. How the fuck do you know what my current skill set is? Fuck you, you dumb bitch. You know whats far beyong your skill set, reading these forums and answering questions.

by curious_george

You can reject all the answers you want to, but what you are trying to do was not designed into DNS, I wish it was, it'd be a great feature.

by arhemed

All you had to do was say that. Dont fucking question my inteligence. Thanks for nothing.

This discussion is closed to new replies.