Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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...

dhcp-host=set:baz,foobar-*
dhcp-range=tag:baz,192.168.1.1,192.168.1.42,infinite
dhcp-range=192.168.1.43,192.168.1.254,12h

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

1 Answer 1

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

 
discard

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.