[Dnsmasq-discuss] New user help, dhcp-hosts
Santiago Zarate
santiago at zarate.net.ve
Thu Oct 14 01:45:29 BST 2010
what's the dnsmasq dhcp log output?...
try:
log-dhcp
2010/10/13 Mark Goldman <bitshifter at gmail.com>
> Negative. The only line that contains ignore is commented out.
>
> #dhcp-ignore=#known
> > On Wed, Oct 13, 2010 at 4:12 PM, Mark Goldman <bitshifter at gmail.com>
> wrote:
> >
> >> Additionally, if I add the line dhcp-host=mike to my dnsmasq.conf the ip
> >> address is assigned as expected. I forgot to put that in the last
> e-mail.
> >> > When I do as you suggest, I get the message: not giving the name mike.
> To
> >> > the dhcp lease of x.x.x.x because the name exists in /etc/hosts with
> >> address
> >> > 10.10.10.1
> >>
> >
> > Just to double-check, you aren't using dhcp-ignore-names are you? I think
> > the exact behavior you describe would result from
> >
> > dhcp-ignore-names=#known
> >
> > since the man page says
> >
> > When a host matches any dhcp-host directive (or one implied by
> /etc/ethers)
> > then the special tag "known" is set.
> >
> >
> >
> >> >
> >> > As far as locking everything down by mac, the network is isolated and
> >> > 'trusted'. I get a machine, I need to set it up and I get to keep it
> for
> >> a
> >> > little while then I deliver it and don't see it again. I just want a
> >> > convenient name to refer to it while its here and a predictable ip
> based
> >> on
> >> > the hostname I assign when I install.
> >> >
> >> > Thanks
> >> >> If i understand correctly, what you want to do is:
> >> >>
> >> >> "Give the machine claiming name 'mike' the 10.10.10.1 address"
> >> >>
> >> >> You can just add in /etc/hosts :
> >> >>
> >> >> 10.10.10.1 mike
> >> >>
> >> >> and restart the service...
> >> >>
> >> >> have a look: http://bit.ly/9D2JzU http://bit.ly/a7DJ1e
> >> >>
> >> >> Though i strongly suggest you to make dnsmasq give ip addresses based
> on
> >> >> macaddress (For security reasons...)
> >> >>
> >> >>
> >> >> 2010/10/13 Mark Goldman <bitshifter at gmail.com>
> >> >>
> >> >>> New user here, I spent several hours googling and came up empty
> handed.
> >> >>>
> >> >>> What I would like is for dnsmasq to hand out the ip address that is
> in
> >> >>> /etc/hosts for any host that claims that hostid. I would like to
> avoid
> >> >>> having a dhcp-host=name line for each host that is in /etc/hosts in
> >> > addition
> >> >>> to having the information in /etc/hosts.
> >> >>>
> >> >>> If there is a better way to achieve this, I'm game for that too. I
> >> would
> >> >>> like to have all this info localized.
> >> >>>
> >> >>> -mdg
> >> >>>
> >> >>> _______________________________________________
> >> >>> Dnsmasq-discuss mailing list
> >> >>> Dnsmasq-discuss at lists.thekelleys.org.uk
> >> >>> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
> >> >>>
> >> >>>
> >>
> >> _______________________________________________
> >> Dnsmasq-discuss mailing list
> >> Dnsmasq-discuss at lists.thekelleys.org.uk
> >> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
> >>
> >>
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20101013/b4ca390c/attachment.htm
More information about the Dnsmasq-discuss
mailing list