Navigation

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

    DNS Resolver -> Host Override

    DHCP and DNS
    2
    11
    10422
    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!


      1 Reply Last reply Reply Quote 0
      • johnpoz
        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?


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

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


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

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

                        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

                          Products

                          • Platform Overview
                          • TNSR
                          • pfSense Plus
                          • Appliances

                          Services

                          • Training
                          • Professional Services

                          Support

                          • Subscription Plans
                          • Contact Support
                          • Product Lifecycle
                          • Documentation

                          News

                          • Media Coverage
                          • Press
                          • Events

                          Resources

                          • Blog
                          • FAQ
                          • Find a Partner
                          • Resource Library
                          • Security Information

                          Company

                          • About Us
                          • Careers
                          • Partners
                          • Contact Us
                          • Legal
                          Our Mission

                          We provide leading-edge network security at a fair price - regardless of organizational size or network sophistication. We believe that an open-source security model offers disruptive pricing along with the agility required to quickly address emerging threats.

                          Subscribe to our Newsletter

                          Product information, software announcements, and special offers. See our newsletter archive to sign up for future newsletters and to read past announcements.

                          © 2021 Rubicon Communications, LLC | Privacy Policy