Is there a way to define a dns server for a specific domain? I'm setting up a develop machine with an amp stack and i want to redirect all urls with a specific domain (i.e. project.dev) to 127.0.0.1. I've done this on OSX with dnsmasq configured in this way:
# /etc/dnsmasq.conf address=/.dev/127.0.0.1 listen-address=127.0.0.1 port=35353
and adding a dev file in /etc/resolver with this content
# /etc/resolver/dev nameserver 127.0.0.1 port 35353
but this in arclinux with dhcpd doesn't work.
I've tested dnsmasq with
dig email@example.com -p 35353 and it works (the address returned is 127.0.0.1) so the problem is the resolver.
I've also tried either put into /etc/resov.conf.head this:
# /etc/resolv.conf.head nameserver 127.0.0.1 port 35353
and configure dnsmasq with the default 53 port without luck.
This is my /etc/resolv.conf
# /etc/resolv.conf nameserver 127.0.0.1 nameserver 192.168.0.1