tungd / elixir-dns

DNS library for Elixir
BSD 3-Clause "New" or "Revised" License
114 stars 37 forks source link

DNS server improvement in the readme example #23

Closed martinlevesque closed 5 years ago

martinlevesque commented 5 years ago

Hey,

Great package. I however experienced an issue by using the readme example as is (DNS server).

I believe this line:

%{record | anlist: [resource]}

should be replaced by

%{record | anlist: [resource], header: %{record.header | qr: true}}

otherwise you will get ";; Warning: query response not set" when you dig it - https://serverfault.com/questions/193238/what-does-warning-query-response-not-set-mean-in-dig-output

Thanks

Martin

tungd commented 5 years ago

Hi, thanks a lot. I've updated the example in README accordingly