Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DNSMasq forwarding on specific domains

Tags:

linux

dns

dnsmasq

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.

like image 788
Swaroop Kundeti Avatar asked Mar 12 '15 07:03

Swaroop Kundeti


Video Answer


1 Answers

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

server=/swaroop.com/ns.swaroop.com
server=/swaroop.org/ns.swaroop.org
like image 123
user4583064 Avatar answered Oct 17 '22 15:10

user4583064