Per Jessen wrote:
DNS lookups are usually tried done with UDP first,
Sure, DNS usually uses UDP, but the DNS resolver also waits for an
answer, wich is simply a waste of time when the sender doesn't need the
answer.
Add to this that resolving one address may result in multiple queries
and that a DNS answer often containes more that the queried info and you
get more overhead.
> but I agree, just use UDP.
Absolutely. Imo, the approach suggested by Marc is a text-book example
of when to use UDP.
(And if more security is needed the easiest way would be to simple limit
access to approved IP addresses.)
Regards
/Jonas
--
Jonas Eckerman
Fruktträdet & Förbundet Sveriges Dövblinda
http://www.fsdb.org/
http://www.frukt.org/
http://whatever.frukt.org/