Help needed with DNS setup please

  • 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 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.


  • LAYER 8 Global Moderator

    "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?

  • Hi Johnpoz,

    thanks for your reply.

    What I want to do is IF the client sends a query for a specific domain and so on with the domain name 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 ( > IP Address

    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?

  • 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?

Log in to reply