Navigation

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

    domain override not working

    DHCP and DNS
    2
    4
    116
    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.
    • R
      rasithapr last edited by rasithapr

      Im trying get domain override to work. I have my ms domain at ip 192.168.151.3 but things not working. But it started to work when i turned off pfsense firewall. What am i missing here do i need to put a firewall rule. Ill attach a picture for my rules alt text

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

        @rasithapr lets go over different steps in validation that your override can/will work, this might help us figure out where its going wrong.

        If you have dns setup on 192.168.151.3 that resolves lets call it mydomain.tld, so I setup a domain override for this..

        I pointed it to nameserver I have on my network on 192.168.9.10

        override.jpg

        I can validate that is where unbound will ask via

        unbound-control -c /var/unbound/unbound.conf lookup host.mydomain.tld
        

        I can look in unbound.conf that it set this domain as private - so it can return rf1918 address

        You can view your unbound.conf in /var/unbound

        I validated that my ns on 192.168.9.10 actually resolves a record looking for.. that dig @192.168.9.10 for host.mydomain.tld you can see it returned 192.168.9.42 which is the A record I set in that ns.

        I validate that pfsense can indeed resolve that fqdn in dns lookup under diagnostics.

        And last you can see that if I ask unbound on pfsense IP of 192.168.9.253 I get the response.

        So you will want to make sure unbound treats this domain as private if its going to return rfc1918 addresses. You will also want to make sure that unbound is set to use an interface that can talk to that ns on for outgoing interfaces.

        interfaces.jpg

        If you have changed it from the default all setting.

        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 23.01 | Lab VMs CE 2.6, 2.7

        R 1 Reply Last reply Reply Quote 0
        • R
          rasithapr @johnpoz last edited by rasithapr

          @johnpoz i changed the outgoing interface to all & now its working it was set to wan previously

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

            @rasithapr I like using localhost personally, it will nat when goes out the wan. But locallhost isn't going to work for a domain override to a NS on your local networks ;)

            Glad you got it sorted.

            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 23.01 | Lab VMs CE 2.6, 2.7

            1 Reply Last reply Reply Quote 0
            • First post
              Last post