greendns | A nonpoisonous and CDN-friendly Recursive DNS Resolver | DNS library
kandi X-RAY | greendns Summary
kandi X-RAY | greendns Summary
A DNS recursive resolve server to avoid result being poisoned and friendly to CDN. It will qeury dns servers at the same time and don't wait for all responses. It's more efficient and quicker than ChinaDNS. CDN-friendly means the resolved IP is the best(Same ISP and the nearest). The Foreign DNS with edns-client-subnet returned IP is not that accurate, especially for the local small ISP. You must config at least two dns servers. One part is local and poisoned, the other part is unpoisoned(tunnel through VPN or use OpenDNS 443/5353 port, dnscrypt-proxy is recommended).
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Run the GreenDNS server
- Run the server forever
- Setup logger
- Parse configuration
- Handle a request from a client
- Connect to remote
- Set TCP keepalive
- Close the socket
- Called when an upstream response is received
- Handle A response
- Calculate response
- Parse the A record
- Called when a client is received
- Shuffle A
- Find a key in the cache
- Handle a UTP response
- Tell whether we should send a response to the client
- Check handler class
- Import a module
- Unregisters the given socket
- Unregister a socket
- Run the loop
- Parse an address string
- Handle a payload recieved
- Run the event loop
- Register a socket
greendns Key Features
greendns Examples and Code Snippets
Community Discussions
Trending Discussions on greendns
QUESTION
I upgrade PostgreSQL from 13.3 to 13.4 and got a fatal error by pgAdmin 4. I found other similar question that try to fix the problem deleting the folder: "C:\Users\myusername\AppData\Roaming\pgadmin\sessions" and running pgAdmin as admin but nothing happen. Also i completely remove postgres and reinstall it, and i installed pgAdmin with his separate installation, but nothing happen again. This is the error:
...ANSWER
Answered 2021-Sep-11 at 18:16This is something that seem to have changed between pgAdmin4 5.1 and 5.7. I've seen this on a machine that had been connected to a WiFi mobile hotspot (but it could happen in other circumstances).
It has something to do with the way the dns
library is used on Windows, so this could happen to other applications that use it in the same way.
Essentially, dns.Resolver
scans the Windows registry for all network interfaces found under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\
The WiFi mobile hotspot that machine had been connected to had set a DhcpDomain
key with value ".home
". The dns.Resolver
found this value and split it using the dot into multiple labels, one of them being empty. That caused the exception you mention: dns.name.EmptyLabel: A DNS label is empty
.
This occurred even when the WiFi network was turned off: those were the last settings that had been in use and dns.Resolver
didn't check whether the interface was enabled.
The latest version of pgAdmin seems to be an older version of dnspython (1.16.0), so I'm not sure whether this has been fixed in more recent versions. For now, there seems to be two options:
Delete or change the
DhcpDomain
subkey if you find it in on of the subkeys ofHKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\
(there might even be a way to force that value through the Control Panel).Connect to a different network that doesn't set this value.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install greendns
You can use greendns like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page