DNSMasq forwarding on specific domains

16,362

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

server=/swaroop.com/ns.swaroop.com
server=/swaroop.org/ns.swaroop.org
Share:
16,362
Swaroop Kundeti
Author by

Swaroop Kundeti

A traditional system administrator

Updated on June 28, 2022

Comments

  • Swaroop Kundeti
    Swaroop Kundeti almost 2 years

    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.