4

I have following scenario: I have set up an ad-hoc network with wicd on my server, and use dnsmasq as an dhcp- and dns-server. The network works very well, I can connect, get an ip address, and on all clients the nameserver is set to the IP of my server. But I want that all dns request of the clients are resolved to my local server which runs an apache webserver. Is this possible with dnsmasq?

Moe
  • 143
  • 1
  • 1
  • 3

2 Answers2

5

The primary options to use in the conf file for this would be:

address=/#/10.6.66.1
interface=vlan9
GDizzle
  • 51
  • 1
  • 1
4

Yes!

I use it this way:

/usr/local/sbin/dnsmasq -z -k -2 -i vlan9 -a 10.6.66.1 \
--address=/\#/10.6.66.1

10.6.66.1 is the IP address it returns.

UPDATE Yes, # is a wildcard. You can specify multiple with --address

cstamas
  • 6,607
  • 24
  • 42