summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/guix.texi6
-rw-r--r--gnu/services/dns.scm7
2 files changed, 12 insertions, 1 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index 7a8ec55b956..63cd99ac09c 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -38221,6 +38221,12 @@ When false, all reverse lookups for private IP ranges are answered with
38221When true, dnsmasq queries the servers in the same order as they appear 38221When true, dnsmasq queries the servers in the same order as they appear
38222in @var{servers}. 38222in @var{servers}.
38223 38223
38224@item @code{locals} (default: @code{'()})
38225Specify domain name @emph{patterns} which should be treated as local,
38226that is, for which there should be no delegation to upstream servers.
38227Provided pattern values should be of the form
38228@code{'("/vpn.example.com/")}.
38229
38224@item @code{servers} (default: @code{'()}) 38230@item @code{servers} (default: @code{'()})
38225Specify IP address of upstream servers directly. 38231Specify IP address of upstream servers directly.
38226 38232
diff --git a/gnu/services/dns.scm b/gnu/services/dns.scm
index d4f771b9b68..52ee99789df 100644
--- a/gnu/services/dns.scm
+++ b/gnu/services/dns.scm
@@ -70,6 +70,7 @@
70 dnsmasq-configuration-no-resolv? 70 dnsmasq-configuration-no-resolv?
71 dnsmasq-configuration-forward-private-reverse-lookup? 71 dnsmasq-configuration-forward-private-reverse-lookup?
72 dnsmasq-configuration-query-servers-in-order? 72 dnsmasq-configuration-query-servers-in-order?
73 dnsmasq-configuration-locals
73 dnsmasq-configuration-servers 74 dnsmasq-configuration-servers
74 dnsmasq-configuration-servers-file 75 dnsmasq-configuration-servers-file
75 dnsmasq-configuration-addresses 76 dnsmasq-configuration-addresses
@@ -809,6 +810,8 @@ cache.size = 100 * MB
809 (query-servers-in-order? 810 (query-servers-in-order?
810 dnsmasq-configuration-query-servers-in-order? 811 dnsmasq-configuration-query-servers-in-order?
811 (default #f)) ;boolean 812 (default #f)) ;boolean
813 (locals dnsmasq-configuration-locals
814 (default '()))
812 (servers dnsmasq-configuration-servers 815 (servers dnsmasq-configuration-servers
813 (default '())) ;list of string 816 (default '())) ;list of string
814 (servers-file dnsmasq-configuration-servers-file 817 (servers-file dnsmasq-configuration-servers-file
@@ -868,7 +871,7 @@ cache.size = 100 * MB
868 port local-service? listen-addresses ipv4? ipv6? 871 port local-service? listen-addresses ipv4? ipv6?
869 resolv-file no-resolv? 872 resolv-file no-resolv?
870 forward-private-reverse-lookup? query-servers-in-order? 873 forward-private-reverse-lookup? query-servers-in-order?
871 servers addresses servers-file 874 locals servers addresses servers-file
872 cache-size negative-cache? 875 cache-size negative-cache?
873 cpe-id 876 cpe-id
874 tftp-enable? tftp-no-fail? 877 tftp-enable? tftp-no-fail?
@@ -916,6 +919,8 @@ cache.size = 100 * MB
916 #$@(if servers-file 919 #$@(if servers-file
917 (list #~(string-append "--servers-file=" #$servers-file)) 920 (list #~(string-append "--servers-file=" #$servers-file))
918 '()) 921 '())
922 #$@(map (cut format #f "--local=~a" <>)
923 locals)
919 #$@(map (cut format #f "--server=~a" <>) 924 #$@(map (cut format #f "--server=~a" <>)
920 servers) 925 servers)
921 #$@(map (cut format #f "--address=~a" <>) 926 #$@(map (cut format #f "--address=~a" <>)