[Dnsmasq-discuss] general question
staenker at web.de
Tue Jul 19 23:30:38 BST 2005
The first way is not the i want to do.
The second way doasn't work. Here's a part of my /etc/dnsmasq.conf:
mrsec:~# cat /etc/dnsmasq.conf | grep ^dhcp-host
And here what i expect you want to know too:
mrsec:~# cat /var/lib/misc/dnsmasq.leases
1121814392 00:40:05:54:16:83 192.168.1.3 mrschnegge 01:00:40:05:54:16:83
1121814647 00:0e:35:05:f4:67 192.168.1.2 mrlapwl 01:00:0e:35:05:f4:67
mrsec:~# ping mrlapwl
ping: unknown host mrlapwl
If i write the hosts into /etc/hosts it works.
If you want to have a full listing of my /etc/dnsmasq.conf i'll post it.
Thanks for your answer
Simon Kelley wrote:
> Staenker wrote:
>> i am new to dnsmasq. I modified the config file a bit and its still
>> Now to my question: I want dnsmasq to resolv the names of its dhcp
>> clients. E.g. a client with mac 00:00:0c:00:99:00 requests an ipaddress.
>> Its name is george. After he has recieved ip 192.168.1.2 from dnsmasq
>> dhcpd i want to be able to ping him with "ping george". That doasn't
>> worked for me until i added a line to /etc/hosts with static ip. But if
>> george gets another ip that wont work.
>> So do i have to wrote a bash-script for dynamic changes of /etc/hosts or
>> is there any functionality provided by dnsmasq?
> The functionality is provided by dnsmasq.
> There are two different ways to make it work.
> In the first, the host tells dnsmasq what its name is when it requests
> an IP address. Look at the documentation for the DHCP client you are
> using to see how to do that.
> In second, the configuration of dnsmasq tells dnsmasq what the name a
> host has, based on it's MAC address, so you could add
> to /etc/dnsmasq.conf
>> Richard Hauswald
>> Dnsmasq-discuss mailing list
>> Dnsmasq-discuss at lists.thekelleys.org.uk
More information about the Dnsmasq-discuss