BIND 10 #167: configure addresses and ports to listen on for DNS servers

BIND 10 Development do-not-reply at isc.org
Fri May 21 04:01:09 UTC 2010


#167: configure addresses and ports to listen on for DNS servers
--------------------------+-------------------------------------------------
 Reporter:  larissas      |        Owner:  UnAssigned                 
     Type:  task          |       Status:  reviewing                  
 Priority:  major         |    Milestone:  04. 2nd Incremental Release
Component:  Unclassified  |   Resolution:                             
 Keywords:                |    Sensitive:  0                          
--------------------------+-------------------------------------------------

Comment(by each):

 > Oh, btw, another unrelated comment I happen to notice: I suggest we use
 socket.getaddrinfo() instead of socket.inet_pton().  Whether or not we
 want to support IPv8:-), I believe we'd like to avoid this type of
 exception usage:

 It's my impression that python rather encourages this usage; anyway there
 are lots of examples of it in the various pythonic code-recipe websites
 and books I've looked at.  I know we want to avoid routine exceptions in
 C++ for performance reasons, but I'm not sure it's a problem in python
 (especially in this case, an input-validation routine).

 I chose to use inet_pton() instead of getaddrinfo() because I only wanted
 to it parse IP addresses, but getaddrinfo() will also look up domain
 names.  Do you know if there's a way to make getaddrinfo() parse addresses
 only?  Or some other way to accomplish the same thing?

-- 
Ticket URL: <https://bind10.isc.org/ticket/167#comment:6>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development


More information about the bind10-tickets mailing list