Re: DHCP setup, what am I doing wrong ????

From: Java Jive (java_at_evij.com)
Date: 04/20/04


Date: Tue, 20 Apr 2004 02:22:23 +0100

I'm not a Linux expert, and my Linux PC is booted into Windows doing a long
job so I can't check this specifically for you at the mo, but if this was a
Windows machine your post would read like DNS rather than DHCP issues. The
two are not quite the same ...

A DHCP server allows client machines to obtain TCP/IP settings
automatically, these will normally include both an IP address and one or
more DNS server addresses.

It sounds like DHCP is dispensing an IP address to your problem machine,
because it can see other machines. If in doubt, you could try comparing the
IPs it gets rebooting it with and without the network cable connected. If
with the cable you connected you obtain an IP in the range dispensed by the
DHCP server rather than the default range you get without the cable
connected, then IP configuration is working.

DNS is what lets you look up other machines by name rather than IP address.
Commonly, though by no means always, DNS server settings follow the DHCP
settings - ie: if a machine is set up to obtain an IP address via DHCP, you
would normally also select any option to obtain DNS server settings via
DHCP, whereas a machine that has a fixed IP usually also has fixed DNS
server addresses.

Suggest you start by comparing the DNS settings on the problem machine with
one that is working.

If none appear to have working DNS, check that the DHCP server is either
also acting as a DNS server or has its own DNS settiings configured
correctly to pass on to its clients, and that your problem machine is
configured to obtain DNS server settings via DHCP. However, if there is
some reason why DNS cannot be set via DHCP, then you will have to put fixed
settings in the problem machine (and likely all the other DHCP clients as
well).

HTHs

"Dave Pal" <davepal@ix.netcom.com> wrote in message
news:40832158.B70E34C9@ix.netcom.com...
> I am using Redhat 9.2 , trying to setup DHCP properly.
>
> My problem is I can nslookup some machines but not others in the
> network, though I can ping them fine.
>
> This is what i have done till now :
> Lets say "abc" is my linux host and I have 3 other machines on the
> network, "def is solaris,
> and the last 2 are XP
> ----------------
> /etc/hosts
> 127.0.0.1 localhost.localdomain
> 192.168.100.1 abc
> 192.168.100.2 def
> 192.168.100.3 ghi
> 192.168.100.4 jkl
> -------------
> /etc/hostname.eth0
> abc
> ------------
> touch /etc/dhcp.eth0
> -----------
> touch /etc/notrouter
> ------------
> /etc/resolv.conf
> domain earthlink.net
> nameserver ***.***.***.***
> ----------
>
> /etc/nsswitch.conf
>
> hosts : files dns
>
> ---------------
> I can nslookup 2 machines, one solaris and one windows, though I can
> ping them all. I cant
> nslookup myself ( abc from abc ).
>
> What am I doing wrong?
>
> - Dave
>

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.659 / Virus Database: 423 - Release Date: 15/04/2004


Relevant Pages

  • Re: Internet connection wizard
    ... turn on DHCP on the workstation. ... Connection-specific DNS Suffix. ... calling CNetCommit::ValidateRouterConnectionProperties. ... Call to Reading preferred DNS server IP returned ok. ...
    (microsoft.public.windows.server.sbs)
  • Re: network has gone down again, and I cannot figure out why
    ... search dns: dns.asm.bellsouth.net ... try against the secondary DNS server address. ... up DHCP on this end and now I can email. ... DHCP just configures your side of the network with the data that the ...
    (Fedora)
  • Re: Migration from sbs 2003 to 2008 standard
    ... Nothing will replicate with DNS server change but the client will renew it's ip address from the DHCP server after the half lesae time. ... At that moment the client will get the new settings from the server, if you have changed the scope options in the DNS management console. ... next reboot or DHCP lease refresh the clients will use ...
    (microsoft.public.windows.server.active_directory)
  • Re: DHCP setup, what am I doing wrong ????
    ... Windows machine your post would read like DNS rather than DHCP issues. ... Commonly, though by no means always, DNS server settings follow the DHCP ...
    (alt.os.linux.redhat)
  • Re: DHCP setup, what am I doing wrong ????
    ... Windows machine your post would read like DNS rather than DHCP issues. ... Commonly, though by no means always, DNS server settings follow the DHCP ...
    (alt.os.linux)