Code Monkey home page Code Monkey logo

Comments (3)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 25, 2024
已添加tcp方式获取dns,可以试试

Original comment by [email protected] on 19 Nov 2011 at 4:11

  • Changed state: Fixed

from pydnsproxy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 25, 2024
请问怎么使用tcp方式呢?

Original comment by [email protected] on 23 Nov 2011 at 1:22

from pydnsproxy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 25, 2024
开启dns.py,我安装了python 
2.7环境,修改网卡dns为127.0.0.1,进入nslookup,查询如下:
C:\Users\ggcall>nslookup
DNS request timed out.
    timeout was 2 seconds.
默认服务器:  UnKnown
Address:  127.0.0.1

> www.sina.com
服务器:  UnKnown
Address:  127.0.0.1

DNS request timed out.
    timeout was 2 seconds.
DNS request timed out.
    timeout was 2 seconds.
DNS request timed out.
    timeout was 2 seconds.
DNS request timed out.
    timeout was 2 seconds.
*** 请求 UnKnown 超时

dns.py错误如下:
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 54994)
Traceback (most recent call last):
  File "C:\Python27\lib\SocketServer.py", line 582, in process_request_thread
    self.finish_request(request, client_address)
  File "C:\Python27\lib\SocketServer.py", line 323, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "C:\Python27\lib\SocketServer.py", line 639, in __init__
    self.handle()
  File "E:\web\pydnsproxy\dns.py", line 40, in handle
    resp = self.query_with_no_match(data)
  File "E:\web\pydnsproxy\dns.py", line 82, in get_response_normal
    return resp
UnboundLocalError: local variable 'resp' referenced before assignment
----------------------------------------

请问是什么问题?

Original comment by [email protected] on 14 Jan 2012 at 1:10

from pydnsproxy.

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.