[Dnsmasq-discuss] Problem assigning static IP

Mircea Bardac dev.list at mircea.bardac.net
Wed Mar 22 16:41:53 GMT 2006


I've been struggling ever since I've installed dnsmasq to make it assign 
statically some IP addresses + names based on the MAC addresses (for several 
computers). I must be missing something in this process, since everything 
seems to be ok - any help would be appreciated.

My config file looks like this:
# cat /etc/dnsmasq.conf.my
domain-needed
bogus-priv

interface=eth0
bind-interfaces

expand-hosts
domain=home.bardac.net

dhcp-range=192.168.0.20,192.168.0.40,2h
dhcp-host=00:0f:ea:fd:72:85,192.168.0.2,aquarium

# cat /etc/hosts
#<ip-address>   <hostname.domain.org>   <hostname>
127.0.0.1               localhost.localdomain   localhost
192.168.0.1             server.home.bardac.net  server
192.168.0.2             aquarium.home.bardac.net        aquarium

My machine is named "aquarium".
me at aquarium # dhcpcd -k
me at aquarium # dhcpcd

outputs on the server

# dnsmasq -C /etc/dnsmasq.conf.my -d
dnsmasq: started, version 2.27 cachesize 150
dnsmasq: compile time options: IPv6 GNU-getopt RTNetlink ISC-leasefile no-DBus 
no-I18N
dnsmasq: DHCP, IP range 192.168.0.20 -- 192.168.0.40, lease time 2h
dnsmasq: read /etc/hosts - 15 addresses
dnsmasq: reading /etc/resolv.conf
dnsmasq: using nameserver 193.231.236.25#53
dnsmasq: using nameserver 193.231.236.30#53
dnsmasq: DHCPRELEASE(eth0) 192.168.0.20 00:0f:ea:fd:72:85
dnsmasq: DHCPDISCOVER(eth0) 00:0f:ea:fd:72:85
dnsmasq: DHCPOFFER(eth0) 192.168.0.20 00:0f:ea:fd:72:85
dnsmasq: DHCPREQUEST(eth0) 192.168.0.20 00:0f:ea:fd:72:85
dnsmasq: DHCPACK(eth0) 192.168.0.20 00:0f:ea:fd:72:85 aquarium
dnsmasq: not giving name aquarium.home.bardac.net to the DHCP lease of 
192.168.0.20 because the name exists in /etc/hosts with address 192.168.0.2
dnsmasq: not giving name aquarium to the DHCP lease of 192.168.0.20 because 
the name exists in /etc/hosts with address 192.168.0.2

Is there any option I should be enabling... or... maybe a typo up there... or 
something else... I actually ran of ideas trying to figure this out. The 
above example is the simplest case in which it doesn't work. 

Lots of thanks.


Mircea

-- 
Psi Forums Moderator/Bug Tracker Manager
Psi Windows Installer Maintainer/ArchLinux Package Maintainer
http://mircea.bardac.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url : http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20060322/45411b21/attachment.pgp


More information about the Dnsmasq-discuss mailing list