General discussion

Locked

DNS Entry w/ IP + Port

By arhemed ·
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.

This conversation is currently closed to new comments.

9 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

DNS Entry w/ IP + Port

by Some Guy in Seattle In reply to DNS Entry w/ IP + Port

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 -

Collapse -

DNS Entry w/ IP + Port

by arhemed In reply to DNS Entry w/ IP + Port

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.

Collapse -

DNS Entry w/ IP + Port

by arhemed In reply to DNS Entry w/ IP + Port

Point value changed by question poster.

Collapse -

DNS Entry w/ IP + Port

by Curious_George In reply to DNS Entry w/ IP + Port

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.

Collapse -

DNS Entry w/ IP + Port

by Curious_George In reply to DNS Entry w/ IP + Port

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.

Collapse -

DNS Entry w/ IP + Port

by arhemed In reply to DNS Entry w/ IP + Port

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

Collapse -

DNS Entry w/ IP + Port

by Curious_George In reply to DNS Entry w/ IP + Port

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.

Collapse -

DNS Entry w/ IP + Port

by arhemed In reply to DNS Entry w/ IP + Port

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

Collapse -

DNS Entry w/ IP + Port

by arhemed In reply to DNS Entry w/ IP + Port

This question was closed by the author

Back to Windows Forum
9 total posts (Page 1 of 1)  

Related Discussions

Related Forums