Skip to content

Commit

Permalink
citation of RFC 1034 in lookup_ip fn
Browse files Browse the repository at this point in the history
  • Loading branch information
Litr0 committed Nov 15, 2023
1 parent f3758b6 commit f00b867
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/resolver/async_resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,18 @@ impl AsyncResolver {
/// RFC 1034
/// 5.2. Client-resolver interface
///
/// Host name to host address translation
/// 1. Host name to host address translation
/// This function is often defined to mimic a previous HOSTS.TXT
/// based function. Given a character string, the caller wants
/// one or more 32 bit IP addresses. Under the DNS, it
/// translates into a request for type A RRs. Since the DNS does
/// not preserve the order of RRs, this function may choose to
/// sort the returned addresses or select the "best" address if
/// the service returns only one choice to the client. Note that
/// a multiple address return is recommended, but a single
/// address may be the only way to emulate prior HOSTS.TXT
/// services.
///
/// FIXME: DEBE RETORNAR CLIENT ERROR
/// This method acts as an interface between the Client and the Resolver.
/// It calls `inner_lookup(&self, domain_name: DomainName)` which will
Expand Down

0 comments on commit f00b867

Please sign in to comment.