DNS over TCP: Order of responses
"Dwayne C. Litzenberger" <[email protected]>
| Newsgroups | gmane.network.djbdns |
|---|---|
| Message-ID | <[email protected]> |
When communicating over a TCP connection, are DNS servers expected to send
responses in the same order as it received the corresponding queries, or is
something like the following allowed?
Resolver Nameserver
-------- ----------
QR=0, ID=1000 example.com IN A ---->
QR=0, ID=1234 heaven.af.mil IN A ---->
<---- QR=1, ID=1234 heaven.af.mil IN A 10.0.0.1
<---- QR=1, ID=1000 example.com IN A 10.0.0.2
I'm writing a small DNS server that forwards queries to other servers based
on the contents of the query (QNAME, RD, etc.) so I need to know how both
the resolver side and the nameserver side _should_ behave, as well as what
I can expect from other software.
I didn't find anything in either RFC 1035 or RFC 2181 about this. Any
insights would be much appreciated.
Thanks,
- Dwayne
--
Dwayne C. Litzenberger <[email protected]>
Key-signing key - 19E1 1FE8 B3CF F273 ED17 4A24 928C EC13 39C2 5CF7
Annual key (2008) - 4B2A FD82 FC7D 9E38 38D9 179F 1C11 B877 E780 4B45