Score:0

DNSmasq: Assign address names to dhcp range

co flag

I'm currently assigning static host records in dnsmasq like this:

host-record=test.example.com,192.168.1.1
dhcp-host=56:54:53:52:51:03,192.168.1.1,8h

However i'd like to give my dynamically assigned ips also a host record like

host-record=dhcp-guest-1.example.com,192.168.2.1
host-record=dhcp-guest-2.example.com,192.168.2.2
host-record=dhcp-guest-3.example.com,192.168.2.3
etc..

Is there any way to solve this dynamically with dhcp-range, or at least without cluttering my hosts file?

Greetings

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.