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

    Host override

    Scheduled Pinned Locked Moved DHCP and DNS
    3 Posts 2 Posters 1.7k 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.
    • W Offline
      Wamba
      last edited by

      Hi,

      I'm kind of stuck with the DNS forwarder right now. I'd like it to serve a particular IP when my clients resolve some particular domain, which seems to be the point of the "host override" section in services\dns forwarder. Unfortunately pfsense doesn't seem to use the entries that i've put there. If I make an entry "www.google.com = 1.1.1.1, a nslookup on google.com on a client machine would still give me a "real" google ip, obtained from pfsense.
      What have I misunderstood?

      Thank you

      1 Reply Last reply Reply Quote 0
      • johnpozJ Offline
        johnpoz LAYER 8 Global Moderator
        last edited by

        does you client have the query cached, did you apply the settings on pfsense?  Are you sure your asking psfsense for dns?

        D:\Dropbox\tools\bin>dig @192.168.1.253 www.google.com

        ; <<>> DiG 9.9.2-P1 <<>> @192.168.1.253 www.google.com
        ; (1 server found)
        ;; global options: +cmd
        ;; Got answer:
        ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 17696
        ;; flags: qr aa rd ra ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

        ;; QUESTION SECTION:
        ;www.google.com.                        IN      A

        ;; ANSWER SECTION:
        www.google.com.        1      IN      A      1.1.1.1

        ;; Query time: 234 msec
        ;; SERVER: 192.168.1.253#53(192.168.1.253)
        ;; WHEN: Tue Mar 19 10:41:49 2013
        ;; MSG SIZE  rcvd: 48

        So you can see - pfsense responded with what I put in the host override for www.google.com

        hostoverride.jpg
        hostoverride.jpg_thumb

        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 25.07.1 | Lab VMs 2.8.1, 25.07.1

        1 Reply Last reply Reply Quote 0
        • W Offline
          Wamba
          last edited by

          OK, thanks to your answer now I get it! I made an error in the "host" part –- oops

          Again, thank you sir!

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