mirage / ocaml-dns

OCaml implementation of the DNS protocol
BSD 2-Clause "Simplified" License
105 stars 43 forks source link

client: stick to RFC 6761 (special purpose domain names) #221

Closed hannesm closed 4 years ago

hannesm commented 4 years ago

handle localhost and invalid appropriately as 'Name Resolution APIs and Libraries'

more specifically, *.localhost. resolves to A 127.0.0.1 AAAA ::1, all other query types NXDomain *.invalid resolves to a negative reply (NXDomain).

fixes #220 //cc @cfcs

hannesm commented 4 years ago

better viewed without disturbing whitespace changes by following this link