mirror of
https://github.com/minoplhy/DNSserver.git
synced 2024-11-24 10:16:54 +00:00
nginx will now handle plain dns requests
This commit is contained in:
parent
3441faef15
commit
cb9c6075bb
@ -7,8 +7,6 @@ log_level('info')
|
|||||||
-- Network interface configuration
|
-- Network interface configuration
|
||||||
net.listen('127.0.0.1', 5353, { kind = 'dns' })
|
net.listen('127.0.0.1', 5353, { kind = 'dns' })
|
||||||
net.listen('::1', 5353, { kind = 'dns', freebind = true })
|
net.listen('::1', 5353, { kind = 'dns', freebind = true })
|
||||||
net.listen('0.0.0.0', 53, { kind = 'dns' })
|
|
||||||
net.listen('::', 53, { kind = 'dns', freebind = true })
|
|
||||||
|
|
||||||
|
|
||||||
-- Load useful modules
|
-- Load useful modules
|
||||||
|
@ -7,9 +7,6 @@ log_level('info')
|
|||||||
-- Network interface configuration
|
-- Network interface configuration
|
||||||
net.listen('127.0.0.1', 5353, { kind = 'dns' })
|
net.listen('127.0.0.1', 5353, { kind = 'dns' })
|
||||||
net.listen('::1', 5353, { kind = 'dns', freebind = true })
|
net.listen('::1', 5353, { kind = 'dns', freebind = true })
|
||||||
net.listen('0.0.0.0', 53, { kind = 'dns' })
|
|
||||||
net.listen('::', 53, { kind = 'dns', freebind = true })
|
|
||||||
|
|
||||||
|
|
||||||
-- Load useful modules
|
-- Load useful modules
|
||||||
modules = {
|
modules = {
|
||||||
|
14
configuration/reverseproxy/nginx/dns-stream
Normal file
14
configuration/reverseproxy/nginx/dns-stream
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
# DNS (TCP) server
|
||||||
|
server {
|
||||||
|
listen 53;
|
||||||
|
listen [::]:53;
|
||||||
|
proxy_pass dns;
|
||||||
|
}
|
||||||
|
|
||||||
|
# DNS (UDP) server
|
||||||
|
server {
|
||||||
|
listen 53 udp;
|
||||||
|
listen [::]:53 udp;
|
||||||
|
proxy_responses 1;
|
||||||
|
proxy_pass dns;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user