[Dnsmasq-discuss] dhcp-host option
Richard Bailey
rmjb at mail.com
Mon Jul 31 22:43:52 BST 2006
Thanks, that worked, but is there a way that could pull the configured
hostname automatically instead of hardcoding it in the file?
I tried:
send host-name "`hostname`";
but that didn't work.
- Thanks,
Richard
On 7/31/06, Simon Kelley <simon at thekelleys.org.uk> wrote:
>
> Richard Bailey wrote:
> > Hello,
> >
> > I have dnsmasq running and it's running great. When I had my client
> > machine as Windows XP the dhcp-host option worked and gave the ip for
> > the host I'd defined in the /etc/hosts file.
> >
> > Now my client is a Ubuntu 6.06 machine and it has the same hostname, but
> > it doesn't get the ip I've assigned. What's different about how Linux
> > does a DHCP request that causes this and how can I fix it so that it
> works?
> >
> > Note the hostname command in Ubuntu gives the proper hostname but the
> > hostname -f command returns localhost. I tried to adjust this but some X
> > and other networking stuff stopped working.
> >
>
> I don't think that the default DHCP client on Ubuntu send the host name
> unless you configure it.
>
> Try editing /etc/dhcp3/dhclient.conf and adding
>
> send host-name "<hostname>"
>
> HTH
>
> Simon.
>
--
"Look at their players from big clubs like Juventus and Arsenal and
Anderlecht, look at ours from San Juan Jabloteh and New England
Revolution...and look what we did. This is the beauty of our game."
Coach Leo Beenhakker - after TnT's draw against Sweden
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20060731/deca4fde/attachment.html
More information about the Dnsmasq-discuss
mailing list