Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to have all machines with a hostname that starts with foobar- assigned an IP from a specific range with an infinite lease. All other machines should have a volatile IP. I did the following but the configuration file was not valid...


Obviously it is possible to use wildcards with MAC addresses, but is there a way to do it by the given hostname?

share|improve this question

You're misunderstanding meaning of the respective dhcp-host field. hostname is the name that will be assigned to the machine at hand, not something that dnsmasq obtains from it.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.