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

Help needed with DNS setup please

Scheduled Pinned Locked Moved General pfSense Questions
4 Posts 3 Posters 473 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.
  • O
    oscar.atkins
    last edited by Nov 9, 2017, 4:49 AM Nov 9, 2017, 4:45 AM

    Hi all,

    I am setting up a DNS server on PFSense to resolve DNS queries on this DNS server.

    I also have a web server in the network.

    What I want to do is if someone sends a DNS query with the domain domaintest.com from their web browser then PFSense presents the client with the web server's IP address instead of resolving the query or forwarding it to the internet.

    How would I do this? I tried DNS Resolver > Domain Overrides but the entries are to forward the queries to another DNS server instead of pointing the request to this IP address.

    Thanks

    1 Reply Last reply Reply Quote 0
    • J
      johnpoz LAYER 8 Global Moderator
      last edited by Nov 9, 2017, 10:45 AM

      "resolve DNS queries on this DNS server."

      What dns server - for what domain?  Do you mean you want to forward all queries to it, or just specific domain?

      An intelligent man is sometimes forced to be drunk to spend time with his fools
      If you get confused: Listen to the Music Play
      Please don't Chat/PM me for help, unless mod related
      SG-4860 24.11 | Lab VMs 2.7.2, 24.11

      1 Reply Last reply Reply Quote 0
      • O
        oscar.atkins
        last edited by Nov 9, 2017, 9:59 PM

        Hi Johnpoz,

        thanks for your reply.

        What I want to do is IF the client sends a query for a specific domain server1.domaintest.com server2.domaintest.com and so on with the domain name domaintest.com THEN forward this request to this static IP address which is my web server, ELSE either resolve everything on this server or forward them to the internet.

        I went into  DNS Resolver > Host Overrides > Add > specify host name (server1) > Domain (domaintest.com) > IP Address xxx.xxx.xxx.xxx

        This kind of works but for every single server I have in my network that I want my PFSense to be able to pass client request onto, I will need to manually type them all in.

        If there a better way of doing this?

        1 Reply Last reply Reply Quote 0
        • K
          KOM
          last edited by Nov 10, 2017, 1:50 AM

          If there a better way of doing this?

          Not that I can think of.  If you want to resolve your local clients to some bogus domain then you will have to add an entry for every client.  How many boxes are you talking about here?  What is it that you're really doing or trying to test?  You mentioned a web server.  Are you trying to test multi-domain hosting or something, or reverse proxying?

          1 Reply Last reply Reply Quote 0
          1 out of 4
          • First post
            1/4
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
            This community forum collects and processes your personal information.
            consent.not_received