Skip to content

Commit

Permalink
add dns_domain
Browse files Browse the repository at this point in the history
  • Loading branch information
f18m committed Nov 29, 2024
1 parent e62f376 commit 835c6ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,12 @@ options:
gateway: 192.168.1.254
# the netmask to advertise in DHCP answers
netmask: 255.255.255.0
# dns servers to advertise in DHCP answers
# dns servers to advertise in DHCP answers OR used as upstream DNS servers when
# dns_server.enable=true
dns:
- 8.8.8.8
- 8.8.4.4
dns_domain: home
ntp:
# define NTP servers to provide to DHCP clients (not all clients will honor this setting though)
# example1: online NTP servers: check https://www.ntppool.org/zone/@ for details about continental zones:
Expand Down Expand Up @@ -99,6 +101,7 @@ schema:
netmask: str
dns:
- str
dns_domain: str
ntp:
- str
dns_server:
Expand Down
3 changes: 2 additions & 1 deletion rootfs/usr/share/tempio/dnsmasq.config
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ cache-size=1000
{{ range .network.dns }}
server={{ . }}
{{ end }}
local=/home/
local=/{{ .network.dns_domain }}/
domain={{ .network.dns_domain }}

{{ if .log_dns }}
log-queries # log DNS related messages
Expand Down

0 comments on commit 835c6ed

Please sign in to comment.