Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    DNS Resolver for 2 different web servers in the same lan

    Scheduled Pinned Locked Moved Routing and Multi WAN
    2 Posts 2 Posters 340 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      justplayinn
      last edited by

      I have 2 different web servers on my LAN, how can i configure my dns resolver that on the basis of host names it forwards the traffic on the required server
      incoming traffic will be WAN traffic.

      V 1 Reply Last reply Reply Quote 0
      • V
        viragomann @justplayinn
        last edited by

        @justplayinn
        A client in the internet does not respect your DNS resolver. He resolves the host names by using it's configured DNS servers and will get back your WAN IP. Hence he sends the request to this IP.
        pfSense only sees the destination IP, not the host name. The name is only known at application layer.

        So if you have only one WAN IP, where the requests are send to, but you want to forward them to different servers behind based on host names, you need to look in the host header at L7. On pfSense this can be done with the HAproxy package.

        1 Reply Last reply Reply Quote 2
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.