In OpenWRT, dns settings are configured at interface level, you need to
define some interfaces to make this config effective on OpenWRT.

Eg:

{
    "interfaces": [
       { ...something here... }
    ]
    "dns_servers": [
        "8.8.8.8",
        "8.8.4.4"
    ]
}

(I looked for a different way to implement that but couldn't find one. If
anyone has suggestions these are very welcome)

On Fri, Sep 14, 2018 at 10:39 AM Aaron Hamilton <[email protected]>
wrote:

> Thanks Federico. This is what the netjson config looks like when
> previewing the template:
>
> {
>     "dns_servers": [
>         "8.8.8.8",
>         "8.8.4.4"
>     ]
> }
>
> On Fri, Sep 14, 2018 at 12:11 AM, Federico Capoano <
> [email protected]> wrote:
>
>> Hi Aaron and welcome,
>>
>> could you please send the NetJSON configuration you're mentioning,
>> removing sensitive or not relevant parts?
>>
>> Federico
>>
>> On Fri, Sep 14, 2018 at 2:04 AM Aaron Hamilton <
>> [email protected]> wrote:
>>
>>> I'm attempting to incorporate custom DNS entries in a configuration
>>> template for LEDE/OpenWrt, but the configuration preview is missing the DNS
>>> entries despite them being in the raw JSON.
>>>
>>> If someone could point me in the direction of where to look, I could
>>> check this out and create a patch for it possibly. I'm very new to OpenWISP
>>> and only know the basics, so not sure where the netjson is getting
>>> converted to UCI.
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "OpenWISP" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "OpenWISP" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "OpenWISP" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to