Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.


  Search this Thread
Old 03-15-2004, 07:32 PM   #1
LQ Newbie
Registered: Mar 2004
Distribution: kubuntu
Posts: 12

Rep: Reputation: 0
Can't change the computer name from dhcp-181-18 and can't start ftp because it

I'm pretty new to linux. I set up proftpd but when I try to start it is says can't find address. If I hook up my old broken router and restart my computer name will change to localhost and ftp will start and it will stay running after I unplug the router and go directly to the modem. I tried to change my computer from getting the address from dhtp server but that doesn't work. This is the thing given me the most trouble every other program works good. btw os is mandrake 9.2

Last edited by rocketman3245; 03-15-2004 at 07:34 PM.
Old 03-16-2004, 03:11 AM   #2
Registered: Nov 2003
Location: Canada
Distribution: ArchLinux
Posts: 324

Rep: Reputation: 30
I am not sure exactly what you want, but to just change your hostname...

hostname yourcomputername

works. You can set up all your networking by hand to use a static ip if you add this:


in /etc/sysconfig/network (substitute your gateway IP and host name) and then in ./network-scripts/ifcfg-eth0, you will want:


Where you will have to cange for your specific IPs. Then make sure your /etc/resolv.conf has a valid nameserver entry in it and that your /etc/hosts file has an entry for your computer. For example, if you computer was named linuxquestions, then you want a line like this in hosts: localhost linuxquestions

You can also put it in front of your IP if you know it... localhost linuxquestions
Old 03-21-2004, 02:47 PM   #3
LQ Newbie
Registered: Mar 2004
Distribution: kubuntu
Posts: 12

Original Poster
Rep: Reputation: 0
I have a dynamtic ip address. If I change the hostname with: hostname localhost it changes my hostname so I could start proftpd and stays started ubtill i reboot. Once I restart I have to go and change hostname again and then start proftpd.

This is the error message I get it I try to start proftpd without changing my host name

Failed to start FTP server : Starting proftpd: - getaddrinfo 'dhcp-181-18' error: Name or service not known - error: unable to determine IP address of 'dhcp-181-18' - error: no valid servers configured - Fatal: error processing configuration file '/etc/proftpd.conf' [FAILED]

Is there a way to fix this so every time i restart i have to change my hostname then start proftpd. I even tried mandrake 10.0 on another partition and get the same error and have to do the same to get it to work.
Old 04-01-2004, 03:57 PM   #4
LQ Newbie
Registered: Apr 2004
Posts: 1

Rep: Reputation: 0
I just had the same problem, and I found that you need to add the new server name and ip to /etc/hosts.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can i change my menu i don't like that start for the start button can i change it? josh_hd_new Mandriva 5 08-06-2008 02:17 AM
Computer won't see DHCP through switch otheralex Linux - Networking 1 07-30-2004 07:02 PM
localhost= - WTF??? Fireice Linux - Security 8 12-29-2003 01:17 PM
Why does only one computer in my house connect through DHCP? digiplaya Linux - Networking 7 12-01-2003 12:45 AM
Eggdrop has quit (Ping timeout: 181 seconds) Kroppus Linux - Software 0 11-13-2003 12:32 PM > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 12:44 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration