Viewing docs for openwrt 0.0.20
published on Friday, Mar 7, 2025 by joneshf
published on Friday, Mar 7, 2025 by joneshf
Viewing docs for openwrt 0.0.20
published on Friday, Mar 7, 2025 by joneshf
published on Friday, Mar 7, 2025 by joneshf
A lightweight DHCP and caching DNS server.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as openwrt from "@pulumi/openwrt";
const testing = openwrt.getDhcpDnsmasq({
id: "testing",
});
import pulumi
import pulumi_openwrt as openwrt
testing = openwrt.get_dhcp_dnsmasq(id="testing")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/openwrt/openwrt"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := openwrt.LookupDhcpDnsmasq(ctx, &openwrt.LookupDhcpDnsmasqArgs{
Id: "testing",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Openwrt = Pulumi.Openwrt;
return await Deployment.RunAsync(() =>
{
var testing = Openwrt.GetDhcpDnsmasq.Invoke(new()
{
Id = "testing",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.openwrt.OpenwrtFunctions;
import com.pulumi.openwrt.inputs.GetDhcpDnsmasqArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var testing = OpenwrtFunctions.getDhcpDnsmasq(GetDhcpDnsmasqArgs.builder()
.id("testing")
.build());
}
}
variables:
testing:
fn::invoke:
function: openwrt:getDhcpDnsmasq
arguments:
id: testing
Using getDhcpDnsmasq
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getDhcpDnsmasq(args: GetDhcpDnsmasqArgs, opts?: InvokeOptions): Promise<GetDhcpDnsmasqResult>
function getDhcpDnsmasqOutput(args: GetDhcpDnsmasqOutputArgs, opts?: InvokeOptions): Output<GetDhcpDnsmasqResult>def get_dhcp_dnsmasq(id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDhcpDnsmasqResult
def get_dhcp_dnsmasq_output(id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDhcpDnsmasqResult]func LookupDhcpDnsmasq(ctx *Context, args *LookupDhcpDnsmasqArgs, opts ...InvokeOption) (*LookupDhcpDnsmasqResult, error)
func LookupDhcpDnsmasqOutput(ctx *Context, args *LookupDhcpDnsmasqOutputArgs, opts ...InvokeOption) LookupDhcpDnsmasqResultOutput> Note: This function is named LookupDhcpDnsmasq in the Go SDK.
public static class GetDhcpDnsmasq
{
public static Task<GetDhcpDnsmasqResult> InvokeAsync(GetDhcpDnsmasqArgs args, InvokeOptions? opts = null)
public static Output<GetDhcpDnsmasqResult> Invoke(GetDhcpDnsmasqInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDhcpDnsmasqResult> getDhcpDnsmasq(GetDhcpDnsmasqArgs args, InvokeOptions options)
public static Output<GetDhcpDnsmasqResult> getDhcpDnsmasq(GetDhcpDnsmasqArgs args, InvokeOptions options)
fn::invoke:
function: openwrt:index/getDhcpDnsmasq:getDhcpDnsmasq
arguments:
# arguments dictionaryThe following arguments are supported:
- Id string
- Name of the section. This name is only used when interacting with UCI directly.
- Id string
- Name of the section. This name is only used when interacting with UCI directly.
- id String
- Name of the section. This name is only used when interacting with UCI directly.
- id string
- Name of the section. This name is only used when interacting with UCI directly.
- id str
- Name of the section. This name is only used when interacting with UCI directly.
- id String
- Name of the section. This name is only used when interacting with UCI directly.
getDhcpDnsmasq Result
The following output properties are available:
- bool
- Force dnsmasq into authoritative mode. This speeds up DHCP leasing. Used if this is the only server on the network.
- Domain string
- DNS domain handed out to DHCP clients.
- Domainneeded bool
- Never forward queries for plain names, without dots or domain parts, to upstream nameservers.
- Ednspacket
Max double - Specify the largest EDNS.0 UDP packet which is supported by the DNS forwarder.
- Expandhosts bool
- Never forward queries for plain names, without dots or domain parts, to upstream nameservers.
- Id string
- Name of the section. This name is only used when interacting with UCI directly.
- Leasefile string
- Store DHCP leases in this file.
- Local string
- Look up DNS entries for this domain from
/etc/hosts. - Localise
Queries bool - Choose IP address to match the incoming interface if multiple addresses are assigned to a host name in
/etc/hosts. - Localservice bool
- Accept DNS queries only from hosts whose address is on a local subnet.
- Readethers bool
- Read static lease entries from
/etc/ethers, re-read on SIGHUP. - Rebind
Localhost bool - Allows upstream 127.0.0.0/8 responses, required for DNS based blocklist services. Only takes effect if rebind protection is enabled.
- Rebind
Protection bool - Enables DNS rebind attack protection by discarding upstream RFC1918 responses.
- Resolvfile string
- Specifies an alternative resolv file.
- bool
- Force dnsmasq into authoritative mode. This speeds up DHCP leasing. Used if this is the only server on the network.
- Domain string
- DNS domain handed out to DHCP clients.
- Domainneeded bool
- Never forward queries for plain names, without dots or domain parts, to upstream nameservers.
- Ednspacket
Max float64 - Specify the largest EDNS.0 UDP packet which is supported by the DNS forwarder.
- Expandhosts bool
- Never forward queries for plain names, without dots or domain parts, to upstream nameservers.
- Id string
- Name of the section. This name is only used when interacting with UCI directly.
- Leasefile string
- Store DHCP leases in this file.
- Local string
- Look up DNS entries for this domain from
/etc/hosts. - Localise
Queries bool - Choose IP address to match the incoming interface if multiple addresses are assigned to a host name in
/etc/hosts. - Localservice bool
- Accept DNS queries only from hosts whose address is on a local subnet.
- Readethers bool
- Read static lease entries from
/etc/ethers, re-read on SIGHUP. - Rebind
Localhost bool - Allows upstream 127.0.0.0/8 responses, required for DNS based blocklist services. Only takes effect if rebind protection is enabled.
- Rebind
Protection bool - Enables DNS rebind attack protection by discarding upstream RFC1918 responses.
- Resolvfile string
- Specifies an alternative resolv file.
- Boolean
- Force dnsmasq into authoritative mode. This speeds up DHCP leasing. Used if this is the only server on the network.
- domain String
- DNS domain handed out to DHCP clients.
- domainneeded Boolean
- Never forward queries for plain names, without dots or domain parts, to upstream nameservers.
- ednspacket
Max Double - Specify the largest EDNS.0 UDP packet which is supported by the DNS forwarder.
- expandhosts Boolean
- Never forward queries for plain names, without dots or domain parts, to upstream nameservers.
- id String
- Name of the section. This name is only used when interacting with UCI directly.
- leasefile String
- Store DHCP leases in this file.
- local String
- Look up DNS entries for this domain from
/etc/hosts. - localise
Queries Boolean - Choose IP address to match the incoming interface if multiple addresses are assigned to a host name in
/etc/hosts. - localservice Boolean
- Accept DNS queries only from hosts whose address is on a local subnet.
- readethers Boolean
- Read static lease entries from
/etc/ethers, re-read on SIGHUP. - rebind
Localhost Boolean - Allows upstream 127.0.0.0/8 responses, required for DNS based blocklist services. Only takes effect if rebind protection is enabled.
- rebind
Protection Boolean - Enables DNS rebind attack protection by discarding upstream RFC1918 responses.
- resolvfile String
- Specifies an alternative resolv file.
- boolean
- Force dnsmasq into authoritative mode. This speeds up DHCP leasing. Used if this is the only server on the network.
- domain string
- DNS domain handed out to DHCP clients.
- domainneeded boolean
- Never forward queries for plain names, without dots or domain parts, to upstream nameservers.
- ednspacket
Max number - Specify the largest EDNS.0 UDP packet which is supported by the DNS forwarder.
- expandhosts boolean
- Never forward queries for plain names, without dots or domain parts, to upstream nameservers.
- id string
- Name of the section. This name is only used when interacting with UCI directly.
- leasefile string
- Store DHCP leases in this file.
- local string
- Look up DNS entries for this domain from
/etc/hosts. - localise
Queries boolean - Choose IP address to match the incoming interface if multiple addresses are assigned to a host name in
/etc/hosts. - localservice boolean
- Accept DNS queries only from hosts whose address is on a local subnet.
- readethers boolean
- Read static lease entries from
/etc/ethers, re-read on SIGHUP. - rebind
Localhost boolean - Allows upstream 127.0.0.0/8 responses, required for DNS based blocklist services. Only takes effect if rebind protection is enabled.
- rebind
Protection boolean - Enables DNS rebind attack protection by discarding upstream RFC1918 responses.
- resolvfile string
- Specifies an alternative resolv file.
- bool
- Force dnsmasq into authoritative mode. This speeds up DHCP leasing. Used if this is the only server on the network.
- domain str
- DNS domain handed out to DHCP clients.
- domainneeded bool
- Never forward queries for plain names, without dots or domain parts, to upstream nameservers.
- ednspacket_
max float - Specify the largest EDNS.0 UDP packet which is supported by the DNS forwarder.
- expandhosts bool
- Never forward queries for plain names, without dots or domain parts, to upstream nameservers.
- id str
- Name of the section. This name is only used when interacting with UCI directly.
- leasefile str
- Store DHCP leases in this file.
- local str
- Look up DNS entries for this domain from
/etc/hosts. - localise_
queries bool - Choose IP address to match the incoming interface if multiple addresses are assigned to a host name in
/etc/hosts. - localservice bool
- Accept DNS queries only from hosts whose address is on a local subnet.
- readethers bool
- Read static lease entries from
/etc/ethers, re-read on SIGHUP. - rebind_
localhost bool - Allows upstream 127.0.0.0/8 responses, required for DNS based blocklist services. Only takes effect if rebind protection is enabled.
- rebind_
protection bool - Enables DNS rebind attack protection by discarding upstream RFC1918 responses.
- resolvfile str
- Specifies an alternative resolv file.
- Boolean
- Force dnsmasq into authoritative mode. This speeds up DHCP leasing. Used if this is the only server on the network.
- domain String
- DNS domain handed out to DHCP clients.
- domainneeded Boolean
- Never forward queries for plain names, without dots or domain parts, to upstream nameservers.
- ednspacket
Max Number - Specify the largest EDNS.0 UDP packet which is supported by the DNS forwarder.
- expandhosts Boolean
- Never forward queries for plain names, without dots or domain parts, to upstream nameservers.
- id String
- Name of the section. This name is only used when interacting with UCI directly.
- leasefile String
- Store DHCP leases in this file.
- local String
- Look up DNS entries for this domain from
/etc/hosts. - localise
Queries Boolean - Choose IP address to match the incoming interface if multiple addresses are assigned to a host name in
/etc/hosts. - localservice Boolean
- Accept DNS queries only from hosts whose address is on a local subnet.
- readethers Boolean
- Read static lease entries from
/etc/ethers, re-read on SIGHUP. - rebind
Localhost Boolean - Allows upstream 127.0.0.0/8 responses, required for DNS based blocklist services. Only takes effect if rebind protection is enabled.
- rebind
Protection Boolean - Enables DNS rebind attack protection by discarding upstream RFC1918 responses.
- resolvfile String
- Specifies an alternative resolv file.
Package Details
- Repository
- openwrt joneshf/terraform-provider-openwrt
- License
- Notes
- This Pulumi package is based on the
openwrtTerraform Provider.
Viewing docs for openwrt 0.0.20
published on Friday, Mar 7, 2025 by joneshf
published on Friday, Mar 7, 2025 by joneshf
