LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 03-15-2004, 06:32 PM   #1
rocketman3245
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 06:34 PM.
 
Old 03-16-2004, 02:11 AM   #2
colnago
Member
 
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:

HOSTNAME=yourcomputername
NETWORKING=yes
GATEWAY=192.168.0.1

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

DEVICE=eth0
BOOTPROTO=static
IPADDR=192.168.0.100
NETMASK=255.255.255.0
NETWORK=192.168.0.0
BROADCAST=192.168.0.255
ONBOOT=yes

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:

127.0.0.1 localhost linuxquestions

You can also put it in front of your IP if you know it...

127.0.0.1 localhost
192.168.0.100 linuxquestions
 
Old 03-21-2004, 01:47 PM   #3
rocketman3245
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, 02:57 PM   #4
freakmn
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.
 
  


Reply


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 01:17 AM
Computer won't see DHCP through switch otheralex Linux - Networking 1 07-30-2004 06:02 PM
localhost=81.6.33.181 - WTF??? Fireice Linux - Security 8 12-29-2003 12:17 PM
Why does only one computer in my house connect through DHCP? digiplaya Linux - Networking 7 11-30-2003 11:45 PM
Eggdrop has quit (Ping timeout: 181 seconds) Kroppus Linux - Software 0 11-13-2003 11:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 08:10 PM.

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