mirror of https://github.com/go-gost/gost.git
23 lines
519 B
YAML
23 lines
519 B
YAML
services:
|
|
- name: dns
|
|
addr: :1053
|
|
handler:
|
|
type: dns
|
|
metadata:
|
|
# Unreachable upstream so the system-DNS fallback is bypassed.
|
|
# The host mapper resolves mapped names before the exchanger is
|
|
# reached; unmapped names must hit the exchanger and fail.
|
|
dns: udp://127.0.0.1:1
|
|
timeout: 2s
|
|
listener:
|
|
type: dns
|
|
hosts: my-hosts
|
|
|
|
hosts:
|
|
- name: my-hosts
|
|
mappings:
|
|
- ip: 10.0.0.100
|
|
hostname: mapped.example.com
|
|
- ip: 192.168.1.200
|
|
hostname: aaaa.mapped.example.com
|