Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    DNSBL Source Definitions Invalid URL or Hostname not resolvable!

    Scheduled Pinned Locked Moved pfBlockerNG
    64 Posts 6 Posters 10.3k Views 6 Watching
    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.
    • N Offline
      NOTORIOUS_VR
      last edited by NOTORIOUS_VR

      Somewhat at a loss here with this one as I cannot see anything wrong.

      I moved my list from one local webserver (local) to another (local) that is on the same (physical) host (VM), but different hostname. Nothing else changed.

      HAProxy is serving the certs, the list works when browsing to it from my browser inside my network and out, and nothing with the list changed just copied it from one DIR to another on my server.

      2.jpg

      DNS lookup from pfsense is good from what I can see:

      Results
      Result	Record type
      10.10.0.254	A
      Timings
      Name server	Query time
      127.0.0.1	1 msec
      ::1	No response
      1.1.1.1	27 msec
      1.0.0.1	27 msec
      

      Traceroute good:

       1  pfSense (10.10.0.254)  0.154 ms  0.151 ms  0.063 ms
      

      Yet I can't seem to get pfblocker to see the list for whatever reason:

      1.jpg

      tinfoilmattT 1 Reply Last reply Reply Quote 0
      • tinfoilmattT Offline
        tinfoilmatt LAYER 8 @NOTORIOUS_VR
        last edited by tinfoilmatt

        @NOTORIOUS_VR .host is not a valid TLD and therefore fails input validation.

        Strike that.

        To be sure, HAProxy is listening on 10.10.10.254:443?

        N 1 Reply Last reply Reply Quote 0
        • N Offline
          NOTORIOUS_VR @tinfoilmatt
          last edited by NOTORIOUS_VR

          @tinfoilmatt said in DNSBL Source Definitions Invalid URL or Hostname not resolvable!:

          To be sure, HAProxy is listening on 10.10.10.254:443?

          I would assume it would be. Like I said, the site/list works without issue inside and out of my network just like all of my other services that HAproxy serves.

          tinfoilmattT 1 Reply Last reply Reply Quote 0
          • tinfoilmattT Offline
            tinfoilmatt LAYER 8 @NOTORIOUS_VR
            last edited by tinfoilmatt

            @NOTORIOUS_VR One way to confirm via webConfigurator is Diagnostics / Sockets (displaying sockstat output).

            HAProxy config gotta be implicated. What happens if you curl the feed to /tmp from a shell?

            N 1 Reply Last reply Reply Quote 0
            • N Offline
              NOTORIOUS_VR @tinfoilmatt
              last edited by

              @tinfoilmatt said in DNSBL Source Definitions Invalid URL or Hostname not resolvable!:

              What happens if you curl the feed to /tmp from a shell?

              Seems to work...

              1.jpg

              tinfoilmattT 1 Reply Last reply Reply Quote 0
              • tinfoilmattT Offline
                tinfoilmatt LAYER 8 @NOTORIOUS_VR
                last edited by

                @NOTORIOUS_VR curl -o /tmp/adobe.txt https://xxxxx.host/lists/adobe.txt to download the file and save it as a file.

                And it actually looks like curl exited with an error. You might try [hostname].xxxxx.host for this webserver.

                N 1 Reply Last reply Reply Quote 0
                • N Offline
                  NOTORIOUS_VR @tinfoilmatt
                  last edited by

                  @tinfoilmatt said in DNSBL Source Definitions Invalid URL or Hostname not resolvable!:

                  curl -o /tmp/adobe.txt https://xxxxx.host/lists/adobe.txt to download the file and save it as a file.

                  And it actually looks like curl exited with an error. You might try [hostname].xxxxx.host for this webserver.

                  Saving to a file works just fine:

                  2.jpg

                  The error was just because I didn't know what the command was...

                  tinfoilmattT 1 Reply Last reply Reply Quote 0
                  • tinfoilmattT Offline
                    tinfoilmatt LAYER 8 @NOTORIOUS_VR
                    last edited by

                    @NOTORIOUS_VR I don't know, man. If it were my system, there's at least two other integrations and one system configuration I'd check (not to mention attempt to decipher the code I linked you to). But nothing's jumping out at me.

                    1 Reply Last reply Reply Quote 0
                    • tinfoilmattT Offline
                      tinfoilmatt LAYER 8
                      last edited by

                      Is pfBlockerNG otherwise configured and operational with working both DNSBL and IP feeds?

                      N 1 Reply Last reply Reply Quote 0
                      • N Offline
                        NOTORIOUS_VR @tinfoilmatt
                        last edited by

                        @tinfoilmatt said in DNSBL Source Definitions Invalid URL or Hostname not resolvable!:

                        Is pfBlockerNG otherwise configured and operational with working both DNSBL and IP feeds?

                        Yes everything is working as it should - the only issue is that it report it cannot access the URL feed from my web server.

                        It's very strange. I want to say that I might have had a similar problem when I had it on the other URL/site (same server) but it was so long ago now I cannot be sure.

                        tinfoilmattT S 2 Replies Last reply Reply Quote 0
                        • tinfoilmattT Offline
                          tinfoilmatt LAYER 8 @NOTORIOUS_VR
                          last edited by tinfoilmatt

                          @NOTORIOUS_VR Additional relevant validation code here.

                          N 1 Reply Last reply Reply Quote 0
                          • N Offline
                            NOTORIOUS_VR @tinfoilmatt
                            last edited by

                            @tinfoilmatt said in DNSBL Source Definitions Invalid URL or Hostname not resolvable!:

                            @NOTORIOUS_VR Additional relevant validation code here.

                            Not sure what that is sorry.

                            1 Reply Last reply Reply Quote 0
                            • S Offline
                              Spider_VL @NOTORIOUS_VR
                              last edited by

                              @NOTORIOUS_VR Not sure if thats gonna point in any right direction but I had same error when I changed the type form Unbound to Python version. I couldnt figure out that at my short attempt to use python version and swapped back to unbound and all fixed itself and suddenly lists working again.

                              N 1 Reply Last reply Reply Quote 0
                              • N Offline
                                NOTORIOUS_VR @Spider_VL
                                last edited by

                                @Spider_VL said in DNSBL Source Definitions Invalid URL or Hostname not resolvable!:

                                @NOTORIOUS_VR Not sure if thats gonna point in any right direction but I had same error when I changed the type form Unbound to Python version. I couldnt figure out that at my short attempt to use python version and swapped back to unbound and all fixed itself and suddenly lists working again.

                                Well, well, well! That worked for me as well! Thank you!

                                So now the question is, what breaks and why when moving to python version.

                                S 1 Reply Last reply Reply Quote 0
                                • S Offline
                                  Spider_VL @NOTORIOUS_VR
                                  last edited by

                                  @NOTORIOUS_VR glad it helped :) I will probably take a look at python version at some point in unforseen future :) but if you find the reason in mean time dont be shy to post here or drop me a message :)

                                  N 1 Reply Last reply Reply Quote 0
                                  • N Offline
                                    NOTORIOUS_VR @Spider_VL
                                    last edited by

                                    @Spider_VL said in DNSBL Source Definitions Invalid URL or Hostname not resolvable!:

                                    @NOTORIOUS_VR glad it helped :) I will probably take a look at python version at some point in unforseen future :) but if you find the reason in mean time dont be shy to post here or drop me a message :)

                                    Will do!

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

                                      976622b4-870e-4ca5-b6e2-718ffccadedc-image.png

                                      You've mixed IP addresses (and/or networks), some of them with the port number (seems wrong to me) and host names together in one file.
                                      That's a big no-no.

                                      You've create a DNSBL entry "Adobe"
                                      and the very first line :

                                      09110b50-854e-4144-a849-d7b9829386f8-image.png

                                      will get flagged as an error, as it is not a host name. It's an IP.

                                      No "help me" PM's please. Use the forum, the community will thank you.

                                      tinfoilmattT N 2 Replies Last reply Reply Quote 0
                                      • tinfoilmattT Offline
                                        tinfoilmatt LAYER 8 @Gertjan
                                        last edited by

                                        @Gertjan That error references an 'invalid URL or hostname' of the feed itself.

                                        That said, pfBlockerNG's parsing functionality properly handles an IP feed also containing FQDNs, and vice versa.

                                        johnpozJ 1 Reply Last reply Reply Quote 0
                                        • N Offline
                                          NOTORIOUS_VR @Gertjan
                                          last edited by

                                          @Gertjan said in DNSBL Source Definitions Invalid URL or Hostname not resolvable!:

                                          will get flagged as an error, as it is not a host name. It's an IP.

                                          This is incorrect, the error is for the position of the line in the DNSBL Category/list position.

                                          I know this because when I added another it then said line 2 instead of 1. Also I removed all IP's and the error is the same.

                                          Also as confirmed above in non-python mode the list loads just fine, so the issue is with the python mode not able to resolve the local server address while pfsense and everything else is.

                                          tinfoilmattT 1 Reply Last reply Reply Quote 0
                                          • tinfoilmattT Offline
                                            tinfoilmatt LAYER 8 @NOTORIOUS_VR
                                            last edited by

                                            @NOTORIOUS_VR said in DNSBL Source Definitions Invalid URL or Hostname not resolvable!:

                                            the error is for the position of the line in the DNSBL Category/list position.

                                            These are called 'feeds' within a 'feed group' configuration.

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
                                            Privacy Policy · Cookie Policy