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

FQDN in static DHCP mappings

Scheduled Pinned Locked Moved General pfSense Questions
10 Posts 4 Posters 2.2k 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.
  • B
    BlazeStar
    last edited by Jun 18, 2015, 10:58 PM

    I'm using 2.2.2-RELEASE (amd64)

    On this page :
    https://doc.pfsense.org/index.php/DNS_Forwarder

    More specifically this:

    Optionally, the DNS forwarder can register hostnames from DHCP leases so that local hostnames can be resolved via DNS. The same can be done with static DHCP mappings. This should only be enabled on networks where the client hostnames can be trusted or controlled.

    My understanding is that instead of using a DNS forwarder, i can just create a static DHCP mapping so I can use a hostname (FQDN) inside my network to point to a local IP.

    So I tried it out:
    http://cl.ly/image/1Y022q1z3B24

    Where mydomain.com is obviously not my real setting.

    But it doesn't work.

    Why ?

    1 Reply Last reply Reply Quote 0
    • D
      doktornotor Banned
      last edited by Jun 18, 2015, 11:05 PM

      You need a DNS server (forwarder/resolver) running. Not really sure what you mean by "instead".

      1 Reply Last reply Reply Quote 0
      • J
        jahonix
        last edited by Jun 19, 2015, 12:19 AM

        @BlazeStar:

        My understanding is that instead of using a DNS forwarder, i can just create a static DHCP mapping so I can use a hostname (FQDN) inside my network to point to a local IP.

        A static DHCP mapping is only half of the equation. As doktornotor wrote, you additionally need a DNS server to actually respond to your queries.
        (a static table doesn't answer, no matter how loud you shout at it)

        1 Reply Last reply Reply Quote 0
        • B
          BlazeStar
          last edited by Jun 19, 2015, 7:46 PM Jun 19, 2015, 7:42 PM

          Ok so screw the DHCP mappings.

          The DNS resolver is active.

          I tried to set up a host override.

          http://cl.ly/image/421d2T2m0A2w

          and here are my settings :

          http://cl.ly/image/1G242e393z44

          doesn't seem to work

          is there any other option, somewhere, I should be aware of?

          thanks!

          1 Reply Last reply Reply Quote 0
          • K
            KOM
            last edited by Jun 19, 2015, 7:51 PM

            You don't have any hosts in the list.  Do you really access your ERP system via YourDomain.com?  Or is it really erp.yourdomain.com or fred.yourdomain.com?  If you do an nslookup on just the domain, you will get a list of domain controller IPs as a response.  How did you test?

            FYI these forums can host images directly, so there is no need to drop them on a filehost and then link to them.

            1 Reply Last reply Reply Quote 0
            • B
              BlazeStar
              last edited by Jun 19, 2015, 8:59 PM

              @KOM:

              You don't have any hosts in the list.  Do you really access your ERP system via YourDomain.com?  Or is it really erp.yourdomain.com or fred.yourdomain.com?  If you do an nslookup on just the domain, you will get a list of domain controller IPs as a response.  How did you test?

              FYI these forums can host images directly, so there is no need to drop them on a filehost and then link to them.

              I don't understand what you mean…

              I do have hosts in my list.

              And the host config I posted has :
              name of host : erp
              domain of host : MyDomain.com (which of course is not the real value)

              How would I configure it otherwise?

              1 Reply Last reply Reply Quote 0
              • K
                KOM
                last edited by Jun 19, 2015, 9:07 PM

                I don't understand what you mean…

                It's probably because I appear to be massively confused today.  I think I will stop and go home.

                So, what happens then when you have a client that points to pfSense for DNS and you try to resolve erp.mydomain.com?

                1 Reply Last reply Reply Quote 0
                • D
                  doktornotor Banned
                  last edited by Jun 19, 2015, 9:13 PM

                  @BlazeStar:

                  The DNS resolver is active.
                  I tried to set up a host override.
                  doesn't seem to work

                  is there any other option, somewhere, I should be aware of?

                  You realize you must point your clients to pfSense as their DNS server?

                  Additionally, did you disable the DNS Resolver? You cannot have both running.

                  1 Reply Last reply Reply Quote 0
                  • B
                    BlazeStar
                    last edited by Jun 20, 2015, 1:27 AM

                    @KOM:

                    It's probably because I appear to be massively confused today.  I think I will stop and go home.

                    So, what happens then when you have a client that points to pfSense for DNS and you try to resolve erp.mydomain.com?

                    No probs!!

                    All help is much appreciated.

                    Well something is going on there…

                    From my computer, if I PING or TRACE the ERP host, then it will give me back 10.0.3.50

                    However, in a web browser (i.e. : Firefox) it didn't work.

                    So I "reset" it... with the repair option... Firefox that is

                    And now it works !!!

                    I guess it was a cache problem or something !

                    THANKS !!!

                    @doktornotor:

                    You realize you must point your clients to pfSense as their DNS server?

                    Additionally, did you disable the DNS Resolver? You cannot have both running.

                    I didn't disable de DNS Resolver.

                    I set host override IN the DNS Resolver.

                    The DNS forwarder is not active.

                    Should I disable de DNS Resolver and activate de DNS Forwarder ?

                    I don't know the impact of that though :S

                    1 Reply Last reply Reply Quote 0
                    • D
                      doktornotor Banned
                      last edited by Jun 20, 2015, 8:11 AM

                      @BlazeStar:

                      I didn't disable de DNS Resolver.
                      I set host override IN the DNS Resolver.
                      The DNS forwarder is not active.
                      Should I disable de DNS Resolver and activate de DNS Forwarder ?

                      No. The point was that you can just run one at a time. (And as I recall, the checks to prevent running both were/are somehow incomplete.)

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