Thanks Federico. Is there a way to map it to the dnsmasq config file? For
example, the spot I'm hoping to populate is in the file /etc/config/dhcp.
Here's an example of the section:
config dnsmasq
option domainneeded '1'
option boguspriv '1'
option localise_queries '1'
option rebind_protection '1'
option rebind_localhost '1'
option local '/lan/'
option domain 'lan'
option expandhosts '1'
option authoritative '1'
option readethers '1'
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.auto'
list server '8.8.8.8'
list server '8.8.4.4'
On Fri, Sep 14, 2018 at 2:12 AM, Federico Capoano <
[email protected]> wrote:
> 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.
>
--
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.