A while ago I moved to another town while keeping the same ISP.
Internet connection was up, connected my machine and I was on the Internet.
After a few days I got an lpd error when I booted and shut down my pc
lpd: 2003-11-02-21:25:34.347 Get_local_host: hostname 'dhcp-****-***' bad
When I tried to restart lpd it failed.
I found a workaround by editing my /etc/hosts file and adapting my hostname to the name I got when running the "hostname" command in a shelll, and it worked for a few weeks.
Now I got the same error again, of course my hostname has changed to 7 other digits and I suspect that if I edit my /etc/hosts file and adapt the hostname I will be fine again until my ISP updates it.
Is there any way to fix that once and for all, I never had a problem with that in the two years before I moved ...!
Also, can I change my hostname to something else than those digits assigned by my ISP ?
I see screens all the time with all kinds of hostnames but I don't knwo if I can change mine without causing havoc.
Update: just as I thought, editing the /etc/hosts file and do a "service lpd restart" fixed it, but until when?



