[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Resolving hostnames using DHCP




On Sunday, April 6, 2003, at 04:16  pm, Mark Zimmerman wrote:

On Sun, Apr 06, 2003 at 04:10:45PM +0000, Clive Menzies wrote:
Hi Reaz

I've got the nameservers in resolv.conf and so resolving public IP's is fine. It's the hosts on the local network that don't resolve. I tried
including the DHCP server's  IP address as a name server but that gave
some strange errors and didn't help.

I've also got the nameservers referred to in dhcpd.conf.

I'm sure I'm missing something obvious ;-)


Not really; you are missing something complicated:

1. If you want your internal machines to be able to look each other up
   via dns queries, you need to run a nameserver on one of those
   machines and then have all of your machines point to that one as a
   nameserver.
2. This internal nameserver must forward queries for external domains
   to an external nameserver.
3. Since you want the internal names and IP addresses to be dynamic,
   the internal nameserver must allow the dhcp server to provide
   dynamic updates to it.

I think that one way to accomplish all of this is to use a combination
of bind 8 and dhcp-dns. I have not done this so I cannot help any
further.

Good luck,
-- Mark
Thanks all - I've been wrong headed. The reason I started on this tack is that I was trying to validate machines for access to the fileserver as opposed to users - very silly, I guess. So I won't be setting up a local nameserver ;-)

I've learnt a lot about dhcp and networking so it has been worthwhile even if it was a cul-de-sac! So back to setting up samba ;-)

Cheers

Clive


____________________________

Clive Menzies & Associates Limited
strategies for business
http://www.clivemenzies.co.uk
75 Priory Road, London N8 8LR
d/l: 020 8348 0996
fax: 087 0705 2066



Reply to: