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:30:03 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 jinmei):
Replying to [comment:6 each]:
> 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?
Use AI_NUMERICHOST.
{{{
addrinfo = socket.getaddrinfo(addrstr, portstr, socket.AF_UNSPEC,
socket.SOCK_STREAM,
socket.IPPROTO_TCP,
socket.AI_NUMERICHOST|
socket.AI_NUMERICSERV)
}}}
(unfortunately these flags don't seem to be documented, which is bad)
You can also see a usage example in the latest version of xfrin under the
trac185 branch.
--
Ticket URL: <https://bind10.isc.org/ticket/167#comment:7>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list