________________________________________
From: [email protected] <[email protected]> on
behalf of Lance Richardson <[email protected]>
Sent: Tuesday, August 8, 2017 11:59 AM
To: Ben Pfaff
Cc: [email protected]
Subject: Re: [ovs-dev] DNS support options
> From: "Ben Pfaff" <[email protected]>
> To: [email protected]
> Sent: Tuesday, August 8, 2017 2:43:17 PM
> Subject: [ovs-dev] DNS support options
>
> Open vSwitch currently supports only IP addresses for specifying
> OpenFlow and OVSDB remotes. It would be nice to support DNS names.
> Open vSwitch can't afford to let DNS resolution block processing, so it
> needs some way to resolve DNS asynchronously. I've come up with the
> following solutions so far:
>
> * Implement it ourselves using threads. Probably, this would be
> a single worker thread that loops through calls to
> getaddrinfo().
>
> * glibc has getaddrinfo_a(), an asynchronous version of
> getaddrinfo(). *BSD and Windows do not have this function, so
> we would still need to implement it ourselves (probably using
> threads) if we adopted this approach, so it might be more work
> than the first solution.
>
> * Use an external asynchronous DNS library. GNU adns looks like
> a good choice
x------------- cut ----------------x
> It has a port to Windows but I don't know whether it's
> up-to-date.
>
______________________________________________
Windows has its own APIs for DNS name resolution:
DnsQueryEx() which is asynchronous:
https://msdn.microsoft.com/en-us/library/windows/desktop/hh447188(v=vs.85).aspx
DnsQuery() which is synchronous:
https://msdn.microsoft.com/en-us/library/windows/desktop/ms682016(v=vs.85).aspx
So we could use either of those.
Thanks,
Shashank
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev