# Add dnsHosts field to config.json for static DNS overrides

**URL:** <https://forums.balena.io/t/add-dnshosts-field-to-config-json-for-static-dns-overrides/377851>\
**Category:** Feature Requests\
**Created:** [April 30, 2026, 1:24pm UTC](https://forums.balena.io/t/add-dnshosts-field-to-config-json-for-static-dns-overrides/377851 "2026-04-30T13:24:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shaunmulligan1](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/shaunmulligan1/32/9857_2.png) [@shaunmulligan1](https://forums.balena.io/u/shaunmulligan1)\
**Post date:** [April 30, 2026, 1:24pm UTC](https://forums.balena.io/t/add-dnshosts-field-to-config-json-for-static-dns-overrides/377851/1 "2026-04-30T13:24:06Z")

</div>

Add a `dnsHosts` field to `config.json` that accepts an array of `{hostname, ip}` pairs and renders them into dnsmasq as static host overrides on the device. Useful for deployments on networks where local DNS returns bad results for specific hostnames and port 53 is intercepted, so changing upstream resolvers via `dnsServers` isn’t an option.
