Comments (16)
That snippet works!
It went directly to 8.8.8.8. Confirmed my DNS log has no queries. And also saw the outbound packets going to 8.8.8.8 from my router's tcpdump trace.
from pyfunceble.
So I just installed latest PyF-dev and this time x64 Python (https://www.python.org/downloads/windows/) but it is still going to my DNS instead of 8.8.8.8:
pyfunceble 2.13.0.dev (Green Galago: Skitterbug)
Python 3.7.4 (tags/v3.7.4:e09359112e, Jul 8 2019, 20:34:20) [MSC v.1916 64 bit (AMD64)]
from pyfunceble.
Hi @opav,
Sorry for the delay, I had to setup Windows 10 so that I can develop and try to debug from there.
May I ask how do determine that PyFunceble still uses the OS settings ?
Also, thanks for using the dev branch! Feedback from the dev branch helps a lot!
Today (Berlin Time) I made a push to the dev, it includes the logger.
Can you update to the latest version and give me the content of output/logs/debug.log
after running the following ?
WARNING if you don't want to expose your DNS IP/Server Name, please anonymize or send the log privately per email or KeyBase (prefered). All issue/debug data shared privately with me will be safely destroyed from my machine and Keybase once the issue is resolved.
> PyFunceble -d google.com --debug --no-whois --dns yourDNSServer
Thanks again for your feedback.
Cheers,
Nissar
from pyfunceble.
Hi @opav,
Can you test if the patch I just pushed fixes your issue?
Cheers,
Nissar
from pyfunceble.
Sorry was away, will test it shortly.
from pyfunceble.
Hi @funilrys ,
I install a fresh pyfunceble 2.11.6.dev (Green Galago: Skitterbug) with all defaults and the problem still persist.
I can confirm it is still using my OS DNS (which points to a DNS server on my network), from the queries in my DNS server log.
Hope the log helps, thank you.
from pyfunceble.
Tested on Windows 10 @funilrys @opav
PyFunceble 2.13.0.dev
Does indeed use the external DNS server I specified.
This test conducted inside a miniConda environment on Windows 10.
from pyfunceble.
I am on Windows 7 and I noticed the Python version is a bit different from @mitchellkrogza , mine says:
Python 3.7.4 (tags/v3.7.4:e09359112e, Jul 8 2019, 19:29:22) [MSC v.1916 32 bit (Intel)]
from pyfunceble.
I came to the same conclusion as @mitchellkrogza .... But we are using Windows 10 😞
Can you test the following locally and tell me if there is a difference (from the DNS log)
import dns.resolver
# This is the part we do.
# We don't touch the default resolver, we use a new one.
our_resolver = dns.resolver.Resolver(configure=False)
our_resolver.nameservers = ["8.8.8.8"]
print(our_resolver.query('google.com', 'A').response)
print("*" * 50)
# This is the part we don't do and the possible solution for your case.
# We replace the default resolver. and work with it.
dns.resolver.default_resolver = dns.resolver.Resolver(configure=False)
dns.resolver.default_resolver.nameservers = ['8.8.8.8']
print(dns.resolver.query('google.org', 'A').response)
Cheers,
Nissar
from pyfunceble.
Do you have any DNS servers hard coded in your network settings? With windows that could well be a cause of what you experienced.
from pyfunceble.
@opav which one worked? google.com
or google.org
?
from pyfunceble.
Both queries works. Meaning both went direct to 8.8.8.8.
Think we are getting close to the issue.
id 44003
opcode QUERY
rcode NOERROR
flags QR RD RA
;QUESTION
google.com. IN A
;ANSWER
google.com. 142 IN A 172.217.194.113
google.com. 142 IN A 172.217.194.138
google.com. 142 IN A 172.217.194.139
google.com. 142 IN A 172.217.194.100
google.com. 142 IN A 172.217.194.101
google.com. 142 IN A 172.217.194.102
;AUTHORITY
;ADDITIONAL
**************************************************
id 27511
opcode QUERY
rcode NOERROR
flags QR RD RA
;QUESTION
google.org. IN A
;ANSWER
google.org. 300 IN A 216.239.32.27
;AUTHORITY
;ADDITIONAL
from pyfunceble.
@opav What if you run ?
PyFunceble -d github.com --http --dns yourDNSServer --no-whois
from pyfunceble.
This works as expected, went to 8.8.8.8 as specified -
PyFunceble -d github.com --http --dns 8.8.8.8 --no-whois
.....
I also trace thru dns_lookup.py and it seems for the earlier commands, the code is getting results from this, the default OS resolver, instead of my specified --dns server?
PyFunceble/PyFunceble/dns_lookup.py
Line 350 in 02032fc
from pyfunceble.
Nope, our issue is actually coming from :
PyFunceble/PyFunceble/http_code.py
Lines 151 to 166 in 02032fc
The patch is written but I'm doing some review of the patch itself in order to avoid a big performance loss.
from pyfunceble.
@opav As the new version was released by the CI tool, can you test and tell us ? https://pypi.org/project/PyFunceble-dev/#files
P.S: Please DO NOT close this issue manually. This issue is going to be closed automatically once 5398233 will be merged to master.
from pyfunceble.
Related Issues (20)
- FEATURE: Special Rules for forumactif.com HOT 1
- Contribution Tracking
- DOC: Moving away from restructured text HOT 8
- BUG: URL in file header should be changed
- BUG: dead domain query HOT 9
- BUG: sqlalche braekes after finishing...
- FEATURE: Reputation filter using the proxy connection HOT 3
- FEATURE: Sharing WHOIS
- FEATURE: meilisearch or redis support vs RamDrive
- BUG: TypeError(f"<data> should be {dict}, {type(data)} given.") HOT 5
- BUG: log file not created... HOT 2
- Special Rules, are they working as expected? HOT 2
- Unstable special rules HOT 1
- BUG: Object of type datetime is not JSON serializable HOT 2
- FEATURE: Timestamp in CLI output
- BUG: domains can't start with a dot... HOT 2
- pyfunceble.funilrys.com
- FEATURE: user_agent: random HOT 3
- BUG: Sets the maximum number of registrar to display
- BUG: CI duble testing same domain HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyfunceble.