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

    DNS Resolver -> Host Override

    Scheduled Pinned Locked Moved DHCP and DNS
    11 Posts 2 Posters 12.4k 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.
    • H
      hardenakker
      last edited by

      Hey all,

      Host override isn't working some how…

      i want example.com to be resolved as IP address 10.0.0.8.

      When i ping on a client pc to example.com i do not get 10.0.0.8 as response back.

      The client has the pfsense host as DNS server in ipconfig.

      Am i missing some kind of setting ?

      Thanks!

      pfsense.larscom.nl+-+Services_+DNS+Resolver_+General+Settings_+Edit+Host+Override+-+Google+Chrome+2016-08-04+12.50.55.png
      pfsense.larscom.nl+-+Services_+DNS+Resolver_+General+Settings_+Edit+Host+Override+-+Google+Chrome+2016-08-04+12.50.55.png_thumb

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

        are you sure your using the resolver and not forwarder?

        This really is click click..

        So your client only has pfsense as dns?  Or does it also have others?  Did you hit apply in the top after you created the override?

        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 24.11 | Lab VMs 2.8, 24.11

        1 Reply Last reply Reply Quote 0
        • H
          hardenakker
          last edited by

          ahh i see, your pinging pfsense.example.com.

          If i ping that it works indeed. Is there a way to override the whole domain incl. sub domains etc. (i basically only wanna override example.com)

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

            so you want a domain override?  You want to point it to another nameserver?

            Or do you want ANYTHING.example.com to point to 1 IP address?  Or something.anything.otherthing.example.com also to go to 1 IP?

            There was a sim thread a while back.. Can you explain your use case so we can find the correct solution to what your wanting, or point you down the correct path to the solution, etc.

            if what you want is my example above to point anything.example.com or say something.anything.otherthing.example.com to point to 1 IP..

            in the custom option box

            server:
            local-zone: "example.com" redirect
            local-data: "example.com A 10.0.0.8"

            C:>dig something.example.com +short
            10.0.0.8

            C:>dig something.subdomain.example.com +short
            10.0.0.8

            C:>dig something.subdomain.subdomainother.example.com +short
            10.0.0.8

            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.8, 24.11

            1 Reply Last reply Reply Quote 0
            • H
              hardenakker
              last edited by

              What i want is that example.com AND www.example.com points to 1 IP address.
              Thanks!

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

                if you only want those 2 what happens if you do something like ftp.example.com what is that suppose to resolve too?

                In your 2 examples just create a override for www host, example.com as domain, for example.com just create host example and domain com, or any other tld see my example.org in overrides

                overrides.jpg
                overrides.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 24.11 | Lab VMs 2.8, 24.11

                1 Reply Last reply Reply Quote 0
                • H
                  hardenakker
                  last edited by

                  @johnpoz:

                  if you only want those 2 what happens if you do something like ftp.example.com what is that suppose to resolve too?

                  In your 2 examples just create a override for www host, example.com as domain, for example.com just create host example and domain com, or any other tld see my example.org in overrides

                  ftp.example.com can resolve to nothing, because it's not something i use internally ;)

                  Thanks for your help, i've added the overrides as you suggested, it works perfectly!

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

                    but it could resolve to something you don't want, etc..  I would prob use the wildcard method in your case, I assume example.com was just that an example and not your domain your using.

                    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.8, 24.11

                    1 Reply Last reply Reply Quote 0
                    • H
                      hardenakker
                      last edited by

                      @johnpoz:

                      but it could resolve to something you don't want, etc..  I would prob use the wildcard method in your case, I assume example.com was just that an example and not your domain your using.

                      Yeah thats right, how can i use the wildcard method? i can't use *

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

                        in my previous example

                        server:
                        local-zone: "example.com" redirect
                        local-data: "example.com A 10.0.0.8"

                        this will direct anything.anything.etc.example.com to the IP you use..

                        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.8, 24.11

                        1 Reply Last reply Reply Quote 0
                        • H
                          hardenakker
                          last edited by

                          @johnpoz:

                          in my previous example

                          server:
                          local-zone: "example.com" redirect
                          local-data: "example.com A 10.0.0.8"

                          this will direct anything.anything.etc.example.com to the IP you use..

                          Thanks, this is what i wanted in the first place ;)

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