Giter Club home page Giter Club logo

Comments (12)

sa7mon avatar sa7mon commented on May 22, 2024 2

Had the same error trying to run it in MacOS. Apparently OSX doesn't have epoll but does have kqueue which is similar.

from massdns.

blechschmidt avatar blechschmidt commented on May 22, 2024 2

I have added a nolinux target to the Makefile. It unsets some directives that cause massdns to be built with epoll support. I tested it on FreeBSD, which does not support epoll, and it appears to work. However, it is based on busy-wait polling. I might eventually implement kqueue support or switch to a multi-platform library like libuv. Now that I have added OS-specific preprocessor definitions, making use of the features of autotools or cmake would be appropriate as well, but don't expect any of this to happen soon.

Maybe you can test whether the latest commits fix the issue for your operating systems.

from massdns.

blechschmidt avatar blechschmidt commented on May 22, 2024

What OS are you using? Currently, MassDNS only runs on Linux because it makes use of epoll for I/O event notification which is specific to Linux.
Maybe version 0.2, making use of busy polling, works for you.

from massdns.

sa7mon avatar sa7mon commented on May 22, 2024

Thanks for doing that. I can now successfully run make nolinux and get a binary in the bin folder.

I tried running: ./bin/massdns -r lists/resolvers.txt -t AAAA -w results.txt test.txt as the readme suggest with only google.com in test.txt and it gave me: Error sending: Invalid argument. Is this user error?

from massdns.

blechschmidt avatar blechschmidt commented on May 22, 2024

I am sorry. I fixed a copy and paste error in the last commit. Does this fix the error for you?

I have also removed the log output in case the "error" results from EAGAIN or EWOULDBLOCK for non-blocking sockets in another commit. Are your results fine or is results.txt empty?

from massdns.

sa7mon avatar sa7mon commented on May 22, 2024

Still get the same error and results.txt is empty

from massdns.

blechschmidt avatar blechschmidt commented on May 22, 2024

Should have been fixed by 050c85b. Can you confirm?

from massdns.

sa7mon avatar sa7mon commented on May 22, 2024

Nope, still getting the same issue. I've posted a recording here in case you'd like more insight into what's happening on my end.

from massdns.

blechschmidt avatar blechschmidt commented on May 22, 2024

Unfortunately, I could not reproduce the issue on a Mac when compiling the newest commit. However, I was able to reproduce the issue with versions before 050c85b. Would you mind posting the contents of your resolvers file and the exact command (including all parameters) you are using in order to start massdns? Is it possible that your resolver file contains IPv6 resolvers with IPv6 being disabled on your system?

from massdns.

sa7mon avatar sa7mon commented on May 22, 2024

Aha! It works. I'm fairly certain it was user error the last time. I think I pulled the updates but didn't re-make the binary.

Works perfectly now, thanks for dealing with me.

from massdns.

kirtiso avatar kirtiso commented on May 22, 2024

hello,
can i install massdns on windows7????if yes then what is command for installing?

from massdns.

blechschmidt avatar blechschmidt commented on May 22, 2024

In order to run it on Windows, install Cygwin including the gcc-core, git and make packages. Open the Cygwin terminal, clone the repository and build it using make nolinux.

I will close this issue now because the OP has not answered for more than three months. Given that I was able to compile massdns on Windows and Mac, I assume that it is fixed now.

from massdns.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.