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

    Setting a Domain Override in the DNS Resolver stops the service

    Scheduled Pinned Locked Moved DHCP and DNS
    14 Posts 3 Posters 995 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.
    • D
      Dicmo @johnpoz
      last edited by Dicmo

      @johnpoz Hi, thanks for the quick answer.

      The domain is "example.com" (but my domain name instead of example, no subdomain or anything else, just a name and .com). The lookup server IP Address is a local IP too.

      This is the DNS Resolver log (it starts at 17:11, when it says ubound stopped):

      Captura de pantalla de 2021-04-14 17-11-36.jpg

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

        And unbound is not running? You show service not running in service stats?

        [21.02.2-RELEASE][admin@sg4860.local.lan]/root: unbound-control -c /var/unbound/unbound.conf status
        version: 1.13.1
        verbosity: 2
        threads: 4
        modules: 2 [ validator iterator ]
        uptime: 221 seconds
        options: control(ssl)
        unbound (pid 37856) is running...
        

        services.png

        When you do a query to it for same something - your not getting an answer?

        $ dig @192.168.9.253 www.google.com
        
        ; <<>> DiG 9.16.13 <<>> @192.168.9.253 www.google.com
        ; (1 server found)
        ;; global options: +cmd
        ;; Got answer:
        ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 49943
        ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
        
        ;; OPT PSEUDOSECTION:
        ; EDNS: version: 0, flags:; udp: 4096
        ;; QUESTION SECTION:
        ;www.google.com.                        IN      A
        
        ;; ANSWER SECTION:
        www.google.com.         3417    IN      A       172.217.4.100
        
        ;; Query time: 0 msec
        ;; SERVER: 192.168.9.253#53(192.168.9.253)
        ;; WHEN: Wed Apr 14 09:29:07 Central Daylight Time 2021
        ;; MSG SIZE  rcvd: 59
        

        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

        D 1 Reply Last reply Reply Quote 0
        • D
          Dicmo @johnpoz
          last edited by

          @johnpoz Confirmed, the DNS resolver (unbound) is not running.

          It goes back to running automatically when I delete the domain rewrite and apply the changes.

          Also, checked from a computer connected locally and the dns does not resolve.

          The pfSense version is 2.5.1.

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

            And if you try and manually start it - it fails, any errors in the logs?

            Not able to duplicate it.. So some piece of the puzzle is missing to why its doing it on your and not mine.

            You could bump the verbosity up in the log, and see it shows you some info that could give a clue to what is going on.

            edit: I am running 21.02.2, I could try firing up a 2.5.1 on a vm.. And see if I can duplicate the problem..

            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
            • S
              SashLi @Dicmo
              last edited by

              @dicmo @johnpoz

              Have a similar issue, after updating to 2.5.1 today the local unbound server stops working. I can see the starting service in the log

              unbound 	6609 	[6609:0] info: start of service (unbound 1.13.1). 
              

              but unbound-control -c /var/unbound/unbound.conf status return

              unbound-control[53604:0] error: connect: Can't assign requested address for 127.0.0.1 port 953
              

              But service is showing the checkmark that it is running. What is really stange that running a netstat -l -n is showing that the DNS server is running

              Active Internet connections
              Proto Recv-Q Send-Q Local Address                                 Foreign Address                               
              udp6       0      0 ::1.53                                        *.*
              udp4       0      0 127.0.0.1.53                                  *.*
              

              Any idea ?

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

                @sashli said in Setting a Domain Override in the DNS Resolver stops the service:

                Can't assign requested address for 127.0.0.1 port 953

                Yeah with that, you have something on 953.. Do you also have the bind package installed.. This has been a known issue for long time that they like to use the same control port.

                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

                S 1 Reply Last reply Reply Quote 0
                • S
                  SashLi @johnpoz
                  last edited by

                  @johnpoz

                  Nope, never installed BIND. I'm on this configuration with unbound since years now and never had any issues. Only have some host overrides in the config.

                  Only get it working when I use the option "use remote DNS Server, ignore local DNS" but I need some of the host overrides so I switched back to the other system with 2.5.0 at the moment.

                  So it is definitely an issue with the unbound

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

                    look to see if anything is running on 953, unbound is going to have problems if something is using 953. Maybe its not bind? But that errors says it couldn't use that port - for some reason..

                    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
                    • S
                      SashLi
                      last edited by

                      Just did it with manually changing the unbound control-interface config to 0.0.0.0 but for some reason I always get back with the same error.

                      Unbound is correcty starting and binding the ports but will not answer any requests

                      sockstat -4 -l | grep unbound
                      unbound  unbound    94120 4  udp4   192.168.1.1:53       *:*
                      unbound  unbound    94120 4  tcp4   192.168.1.1:53       *:*
                      unbound  unbound    94120 8  udp4   127.0.0.1:53          *:*
                      unbound  unbound    94120 9  tcp4   127.0.0.1:53          *:*
                      unbound  unbound    94120 14 tcp4   127.0.0.1:953         *:*
                      

                      trying to run the control command gets back with the same error.

                      root: unbound-control -c /var/unbound/unbound.conf status
                      
                      [1618467957] unbound-control[33867:0] error: connect: Can't assign requested address for 127.0.0.1 port 953
                      
                      johnpozJ 1 Reply Last reply Reply Quote 0
                      • johnpozJ
                        johnpoz LAYER 8 Global Moderator @SashLi
                        last edited by johnpoz

                        @sashli said in Setting a Domain Override in the DNS Resolver stops the service:

                        Can't assign requested address for 127.0.0.1 port 953

                        Are you running pfblocker?

                        See here
                        https://forum.netgate.com/post/822615

                        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

                        S 1 Reply Last reply Reply Quote 0
                        • S
                          SashLi @johnpoz
                          last edited by

                          @johnpoz Yes but no DSNBL function enabled. Already red that thread, so this can not be the answer but thanks a lot to share this

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

                            Do you have pfblocker enabled at all - turn it off.. Kill all your unbound instances..

                            Do you still have the same problem?

                            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
                            • First post
                              Last post
                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.