[Dnsmasq-discuss] dnsmasq to return NODATA for an A query
Aaron Jones
me at aaronmdjones.net
Sun Mar 14 14:35:40 UTC 2021
On 07/03/2021 08:57, Geert Stappers via Dnsmasq-discuss wrote:
> --host-record=foo.example.org,NODATA,fd00::1
>
> Says what is wanted.
>
> In `hosts` file
>
> fd00::1 foo.example.org
> NO4DATA foo.example.org
>
> and allow
>
> 192.168.0.1 foo.example.org
> NO6DATA foo.example.org
>
> plus also
>
> NO4DATA foo.example.org
> NO6DATA foo.example.org
>
> to express "don't go to upstream resolvers for foo.example.org,
> return NODATA to the request of the DNS client"
>
> That "hosts file syntax" applied to `host record`
> --host-record=foo.example.org,NODATA,fd00::1
> --host-record=foo.example.org,192.168.0.1,NODATA
> --host-record=foo.example.org,NODATA,NODATA
Yeah, that would suit my purposes just fine, and I imagine would become
very useful for others in the future too. :)
Regards,
Aaron Jones
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20210314/935e3998/attachment.sig>
More information about the Dnsmasq-discuss
mailing list