[NTLUG:Discuss] Newbie Question re: LPD Initialization and Local Host Bad Message
Wayne Dahl
w.dahl4 at verizon.net
Thu Mar 6 16:16:28 CST 2003
On Sun, 2003-03-02 at 21:13, Jack Snodgrass wrote:
> On Sun, 2003-03-02 at 21:03, Fred Hensley wrote:
> > On Sun, 2003-03-02 at 20:53, Jack Snodgrass wrote:
> > -snip-
> > > if you use enter
> > > hostname
> > > what does it tell you?
> >
> > I get "x1-6-00-a0-c9-04-42-7e" (no quotes)
> >
> > > Can you ping the name that hostname returns?
> >
> > ping returns: unknown host x1-6-00-a0-c9-04-42-7e
> >
> > >
> > > I am guessing that you get a dhcp address assigned.
> > >
> > > LPD is trying to use that as your hostname and it's
> > > not resolving correctly.
> >
> > Yep... So where might I go from here?
>
> if the GUI works at all, do a
> redhat ( start )
> system settings,
> network,
> DNS tab
> and enter a hostname like linux.private.net
> Then select the Hosts tab and add a host entry
> It should be 127.0.0.1 and the name you added
> for your hostname ( linux.private.net )
>
> If that doesn't work ( or the GUI doesn't )
> >From a terminal/bash prompt, the
> ifconfig
> command will show you your IP Addresses.
>
> Your probably using eth0 ( cable modem or DLS via GTE )
> or maybe ppp0 ( 56k dial-up ACK! ). Which ever your
> using, write down the ip address ( something like
> 123.123.123.123 ) and then make up a /etc/hosts entry
> that has
> your-ip-address your-weird-host-name
>
> hope one of those works/helps.
>
> jack
Since I was having trouble setting up a Samba server for my internal
network here at home, the DIAGNOSIS.txt file said something about
expecting the /etc/hosts file was set up correctly for the network.
Checking it only showed one entry...127.0.0.1 localhost.localdomain.
Since my network was setup on DHCP and my DSL router was the DHCP server
(I'm not running a DHCP server on my Linux box), there was no way to put
a static IP address in the hosts file on the Linux box. So, I got
around that by disabling the DHCP server on the router and assigned
static IP's for each of the machines on the network.
That worked until I rebooted my Linux box and I got the same kind of
error Fred was getting when the boot process tried to start the lpd. I
went to the /etc/hosts file and checked it again and saw my error. I
had changed the 127.0.0.1 localhost.localdomain entry to
192.168.0.100 LINUXHOST. On the advice someone else gave on the list,
I added back an entry in the /etc/hosts file for the 127.0.0.1
localhost.localdomain, started the lpd and it started just fine. I no
longer get that error message on startup.
Wayne
More information about the Discuss
mailing list