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

    Help with domain override setup

    Scheduled Pinned Locked Moved DHCP and DNS
    18 Posts 3 Posters 508 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.
    • johnpozJ
      johnpoz LAYER 8 Global Moderator @krlsantcard
      last edited by

      @krlsantcard said in Help with domain override setup:

      But on client from LAN never resolve.

      Is the client also on the same network as this ns your forwarding to? Keep in mind when you domain override that rebind will be in effect.

      If your client is on the same network as NS you forward too, or there is asymmetrical routing back from the ns to the client - the client could say hey wait a minute I asked 1.2.3.4 for this why am I getting an answer from 4.5.6.7

      What I find odd is why does your nslookup not even resolve 192.168.160.55, this is pfsense own name I would assume. This should really always resolve.

      > wwelsdjmfdss.dsfhjlsdjhfs.fdsfd
      Server:  sg4860.home.arpa
      Address:  192.168.9.253
      
      *** sg4860.home.arpa can't find wwelsdjmfdss.dsfhjlsdjhfs.fdsfd: Non-existent domain
      

      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
      • GertjanG
        Gertjan @krlsantcard
        last edited by Gertjan

        @krlsantcard said in Help with domain override setup:

        homelab.cu

        I'm not sure ...
        When I enter :

        a8728d31-aa7a-4d0c-8176-980305f1b945-image.png

        and save, and then restart unbound/resolver it works right away.

        C:\Users\Gauche>nslookup prod-1.homelab.cu
        Serveur :   pfSense.bhf.tld
        Address:  2a01:cb19:dead:beef:c3c:77ff:fe29:392c
        
        Nom :    prod-1.homelab.cu
        Address:  1.2.3.4
        

        My WAN is always connected.

        @krlsantcard said in Help with domain override setup:

        Servidor: UnKnown
        Address: 192.168.160.55

        Strange.
        Is this 192.168.160.55 your pfSense LAN or other LAN (OPTx) interfaces ?
        Is unbound listening to this interface ?
        This will do just fine :

        45a2b39c-e73d-47f6-a041-46837d4dbbfc-image.png

        Not related, but scary : .55 and not .1 or if you have to .254 ... No reverse for your pfSense ?

        I'm using the default (Netgate) resolver settings, so my resolver resolves.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

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

          @Gertjan he said domain override - so not a host override I think.

          he could be running into a transparent zone problem because .cu is a valid public tld.. so pfsense could be asking the internet not his domain override, etc.

          Personally not a fan of using public domain names internally.. if its for internal use - just use an internal tld like home.arpa or the new approved .internal.. But yeah pfsense not resolving its own name is odd.

          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

          GertjanG 1 Reply Last reply Reply Quote 0
          • GertjanG
            Gertjan @johnpoz
            last edited by

            @johnpoz said in Help with domain override setup:

            he could be running into a transparent zone problem because .cu is a valid public tld..

            That's exactly what I'm using :

            8fee8fd0-4188-4b0b-bdcb-cc18ea242d0a-image.png

            and I'm not using bhf.tld as a local pfSense domain name, but a dot net, so a real rented domain name.
            As I control this domain name with my own bind DNS domain name server, I can 'see' if local LAN DNS request get send upstream - and this never happens.
            I'll like to see it this : for all the local LAN based "bhf.net" DNS requests (and the host override) , my unbound is authoritative, so it gets an answer. If it can't, because I was asking for whatever.bhf.net, then the request can forwarded upstream (resolved) and the request winds up on my own DNS zone domain server, who will says what needs to be said : dono neither.

            All this works perfectly fine with 'out of the Netgate box' settings.
            Never had any issues ^^

            No "help me" PM's please. Use the forum, the community will thank you.
            Edit : and where are the logs ??

            johnpozJ K 2 Replies Last reply Reply Quote 0
            • johnpozJ
              johnpoz LAYER 8 Global Moderator @Gertjan
              last edited by johnpoz

              @Gertjan not saying it can't work - it can be problematic when your trying to resolve some thing internally, while other things externally.

              I am not a fan of doing it that way..

              If you have all your records setup for your internal stuff you good.. Its when you don't and it tries to resolve external where you can run into nx for sure. Because your external doesn't have a record, etc.

              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

              GertjanG 1 Reply Last reply Reply Quote 0
              • GertjanG
                Gertjan @johnpoz
                last edited by Gertjan

                @johnpoz

                I didn't found another solution as I have to use
                captive-portal.my-hotel.net
                for my captive portal, so I can get easily a LE/acme certificate for it.

                The "my-hotel.net" must be known public for the DNS LE test.
                Not sure if "local.arpa" can also be LE tested ^^

                edit : btw : I ask a wild card *.my-hotel.net so I can use the cert for all my LANs based hosts.

                No "help me" PM's please. Use the forum, the community will thank you.
                Edit : and where are the logs ??

                1 Reply Last reply Reply Quote 0
                • K
                  krlsantcard
                  last edited by

                  Thanks for reply.
                  I was doing simple testing:
                  ping from LAN to DMZ dont respond!!!
                  pinh from LAN to GUEST ok.
                  and i think that all this odd behavior must be how i have all setup.
                  So let me explain.
                  I have all virtualize on VMware on my PC (one NIC).
                  05.jpg

                  my customs adapters
                  02.jpg

                  and here my networks from window
                  03.jpg

                  and in pfsense setup
                  04.jpg

                  from GUEST network all work fine or maybe??
                  464b39ed-876c-4622-9140-b3da97fb917b-image.png

                  but from LAN a ping to DMZ never respond,
                  how ever ping to GUEST respond well.
                  rules are open to any.

                  Any idea???

                  K 1 Reply Last reply Reply Quote 0
                  • K
                    krlsantcard @krlsantcard
                    last edited by

                    ipconfig on GUEST network,
                    07.jpg

                    K 1 Reply Last reply Reply Quote 0
                    • K
                      krlsantcard @krlsantcard
                      last edited by

                      ipconfig in LAN
                      08.jpg

                      Is it why never resolve. ????

                      K 1 Reply Last reply Reply Quote 0
                      • K
                        krlsantcard @krlsantcard
                        last edited by

                        to finish i have to add to DNS server settings the ip from my dns server on DMZ, is that correct???
                        09.jpg

                        1 Reply Last reply Reply Quote 0
                        • K
                          krlsantcard @Gertjan
                          last edited by

                          @Gertjan Problem Solved!!!!

                          Yes i dont know why but was related to virtualizations.
                          Just put de VM on the subnet of LAN and get all via DHCP and resolves all like a charm!!!!.
                          Now from any subnet work great. i almost give up.
                          thanks u all.

                          K 1 Reply Last reply Reply Quote 0
                          • K
                            krlsantcard @krlsantcard
                            last edited by

                            In order all this work i have to:

                            1. DNS Resolver -> Domain Overrides setting:
                              homelab.cu - 10.0.0.50 (DNS server in DMZ)

                            2 DNS Resolver -> Access List granted access to LAN and GUEST network (not sure is needed).

                            1. leave in blank "DNS Server Settings" fields (System->General setup)(previous filled with google dns but dont resolved my internal dns)

                            2. In every interface (LAN, GUEST) under DHCP Server setting:
                              DNS server: IP of interface, 8.8.8.8, 8.8.4.4, 1.1.1.1
                              gateway: IP of interface
                              domain name: homelab.cu
                              (i supose that this way any client conected to any of this interface get network setting via dhcp and when resolver first look in the ip of the domain override, then if fail go to the others dns i setup. Is that correct? ) and isthis the right way to do it??
                              Thanks again and i hope someone can make some clarifications about this notes above.

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

                              @krlsantcard no none of that makes any sense.. clients behind pfsense should be really the only dns set on clients. If you want pfsense to forward to google dns or cloudflare than setup pfsense to do so.. But resolving should be fine, its the default you do not have to set any dns IPs

                              Those IPs sure and the hell not going to know about any local resources you want to resolve. And no they do not try in order, when you set more than one nameserver on a client, you really have no idea which one it might ask.

                              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

                              K 2 Replies Last reply Reply Quote 0
                              • K
                                krlsantcard @johnpoz
                                last edited by

                                @johnpoz said in Help with domain override setup:

                                clients behind pfsense should be really the only dns set on clients.

                                First i made this ways but then dont resolve nothing to the internet. Just my internal dns.

                                So i really lost how i must go on!!!

                                1 Reply Last reply Reply Quote 0
                                • K
                                  krlsantcard @johnpoz
                                  last edited by

                                  @johnpoz said in Help with domain override setup:

                                  f you want pfsense to forward to google dns or cloudflare than setup pfsense to do so

                                  Please let me put in a way u can understand, what i pretend if type on a browser in LAN o GUEST www.homelab.cu or nas-prod-1.homelab.cu resolve to my DNS server on DMZ, otherwise typing any word, frase then google.

                                  1 Reply Last reply Reply Quote 0
                                  • K
                                    krlsantcard
                                    last edited by

                                    Well, following ur sugestions remove all dns.
                                    Client in GUEST (get via DHCP)
                                    12.jpg

                                    Is that correct???
                                    And a ping to google.

                                    then in browser:
                                    DNS_PROBE_FINISHED_NXDOMAIN

                                    just made a flushdns and problem resolved.
                                    so that's the way should be?

                                    1 Reply Last reply Reply Quote 0
                                    • K
                                      krlsantcard
                                      last edited by

                                      for clarification,
                                      on DHCP server -> GUEST (static IP 192.168.42.1) i set
                                      DNS servers : 192.168.42.1
                                      Gateway: 192.168.42.1
                                      Domain name: homelab.cu

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