none
DNS records permits port redirection? RRS feed

  • Question

  • Hello everyone!

      Is it possible to create a type A or CNAME record on the DNS server by pointing a name to a desired IP address and PORT? In other words, name 'app1.local' goes to 192.168.0.20 port 10443?

    Hope I was clear enough.


    Doria

    Wednesday, June 24, 2020 3:32 PM

Answers

  • Hi Doria,

    As far as I know, DNS is an IP Address (layer 3) to hostname mapping service.  It does not interact with TCP (layer 4) in any way.

    And an SRV record does not redirect any port, it only specifies it for clients which specifically support SRV records.

    If you want to achieve port redirection, you need to configure NAT.

    For your reference:

    port forwarding & public DNS

    Creating a DNS Record with a port number??

    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.

    Best Regards,

    Candy


    Please remember to mark the replies as an answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com   

    • Marked as answer by dydoria Thursday, June 25, 2020 12:10 PM
    Thursday, June 25, 2020 2:25 AM

All replies

  • You can use SRV records:

    _service._proto.name. TTL class SRV priority weight port target.
    Service: the symbolic name of the desired service.

    Proto: the transport protocol of the desired service; this is usually either TCP or UDP.

    Name: the domain name for which this record is valid, ending in a dot.

    TTL: standard DNS time to live field.

    Class: standard DNS class field (this is always IN).

    Priority: the priority of the target host, lower value means more preferred.

    Weight: A relative weight for records with the same priority.

    Port: the TCP or UDP port on which the service is to be found.

    Target: the canonical hostname of the machine providing the service, ending in a dot.

    Example:

    _sip._tcp.example.com. 86400 IN SRV 0 5 5060 sipserver.example.com.
    So what I think you're looking for is to add something like this to your DNS hosts file:

    _sip._tcp.arboristal.com. 86400 IN SRV 10 40 25565 mc.arboristal.com.
    _sip._tcp.arboristal.com. 86400 IN SRV 10 30 25566 tekkit.arboristal.com.
    _sip._tcp.arboristal.com. 86400 IN SRV 10 30 25567 pvp.arboristal.com.
    On a side note, I highly recommend you go with a hosting company rather than hosting the servers yourself. It's just asking for trouble with your home connection (DDoS and Bandwidth/Connection Speed), but it's up to you.
    Wednesday, June 24, 2020 3:45 PM
  • Thank you for your answer. But how effectively will the workstation use this record? For example, on a simple website published on a port other than 80, say 8080?


    Doria

    Wednesday, June 24, 2020 4:38 PM

  • Doria

    Wednesday, June 24, 2020 4:38 PM

  • Doria

    Wednesday, June 24, 2020 4:38 PM
  • Hi Doria,

    As far as I know, DNS is an IP Address (layer 3) to hostname mapping service.  It does not interact with TCP (layer 4) in any way.

    And an SRV record does not redirect any port, it only specifies it for clients which specifically support SRV records.

    If you want to achieve port redirection, you need to configure NAT.

    For your reference:

    port forwarding & public DNS

    Creating a DNS Record with a port number??

    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.

    Best Regards,

    Candy


    Please remember to mark the replies as an answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com   

    • Marked as answer by dydoria Thursday, June 25, 2020 12:10 PM
    Thursday, June 25, 2020 2:25 AM
  • Thanks.


    Doria

    Thursday, June 25, 2020 12:50 PM
  • You are welcome. :)

    Please remember to mark the replies as an answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com   

    Thursday, June 25, 2020 2:00 PM