DNSMasq forwarding on specific domains
Asked Answered
D

1

11

I've a problem of routing DNS traffic on specific domains.

Example:

  • *.swaroop.com should forward to ns.swaroop.com
  • swaroop.org should forward to ns.swaroop.org

Can we achieve the above scenario with DNSMasq? Please let me know if anyone has done this.

Dispersion answered 12/3, 2015 at 7:28 Comment(0)
R
12

The following configuration in /etc/dnsmasq.conf should be useful:

server=/swaroop.com/ns.swaroop.com
server=/swaroop.org/ns.swaroop.org
Rota answered 12/3, 2015 at 7:47 Comment(2)
For those of you that found this like me, yes, this applies to wildcards by default. Read about it at thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html - look for --local, --server. It's about 1/5 of the way down.Towe
Getting dnsmasq: bad address at line 9 of /etc/dnsmasq.conf when added above lineMetaphrast

© 2022 - 2024 — McMap. All rights reserved.