LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-26-2004, 09:11 AM   #1
techsimian
LQ Newbie
 
Registered: Aug 2004
Distribution: Mandrake 10.0
Posts: 13

Rep: Reputation: 0
DHCP seems to set hostname = Mac address, doesn't reverse lookup


So my hostname is auto-set on boot to something like x1-06-00-00-de-xi etc, as I heard will happen as Mandrake's Control Centre told me - but my hostname used to be of the format:

octet1-octet2-octet3-octet4.cable.ubrx.isp.com (I had problems when I ran XP too, my hostname = my computer name) I've tried the hostname command as root, and that works temporarily, although, I won't always know my hostname, the whole point is that it's assigned automatically of course.

Any idea how I stop it being assigned an address like my MAC?

If I want to have proFTPd running, I have to run hostname octet1-octet2-octet3-octet4.cable.ubrx.isp.com and then start it, and amaroK fails to start up altogether, says it timed out trying to contact 'amaroK'. Not sure whether it means the aRts server (which is running anyway)

Cheers.

Distro = MDK10.0
WM = KDE 3.2
Connection = Cable broadband
 
Old 08-26-2004, 02:45 PM   #2
nweaver916
LQ Newbie
 
Registered: Aug 2004
Location: Boise, ID
Distribution: RH9
Posts: 15

Rep: Reputation: 0
I believe dynamic hostnames are given by DNS. Your ISP assigns you an IP address, and your machine looks up that IP address in DNS, and that is what shows. Your ISP may have changed policies recently...

You should still be able to FTP to just IP address (ie FTP XXX.XXX.XXX.XXX).
 
Old 08-26-2004, 06:54 PM   #3
techsimian
LQ Newbie
 
Registered: Aug 2004
Distribution: Mandrake 10.0
Posts: 13

Original Poster
Rep: Reputation: 0
I understand that, but apparently MDK sets your hostname on boot or login (I'm unsure) to a name similar to the MAC address of the NIC, as opposed to letting DHCP do its job.

I can FTP *out*, but if I want proFTPd running, I have to run that hostname command above to get proFTPd to start up: It doesn't seem to like a hostname that doesn't reverse lookup to the IP. :-/

Edit: just re-read your post: I'll give the ISP a call tomorrow and ask if there's any reason the hostname is being changed on their part. I noticed running winipcfg on the dialup machine (I know, but it's not my machine, I can't install *nix on that one, sadly) said that the hostname was something which definitely wouldn't reverse lookup to the IP. Seemed to be about as random as XP's assigning of a new computername. :-/ Odd.

May be worth noting that the errors amaroK and others are dying out with in CLI mode use an IPv6 version of 127.0.1. :0.0 if I'm not mistaken.

Last edited by techsimian; 08-26-2004 at 06:59 PM.
 
Old 08-27-2004, 09:05 PM   #4
techsimian
LQ Newbie
 
Registered: Aug 2004
Distribution: Mandrake 10.0
Posts: 13

Original Poster
Rep: Reputation: 0
*bump*

Nobody can help me override the hostname MDK apparently sets?
Or should I just get RH instead, or something? :|
 
Old 08-15-2006, 04:11 PM   #5
cRacKya
LQ Newbie
 
Registered: Feb 2005
Posts: 5

Rep: Reputation: 0
Have you tried ?

echo server1.example.com > /etc/hostname
/bin/hostname -F /etc/hostname

that should set the hostname

regards

cRacKya

Last edited by cRacKya; 08-15-2006 at 04:13 PM.
 
  


Reply



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
MAC Address based hostname hogg85 Linux - Networking 2 06-13-2005 12:51 PM
DHCP + Mac address tiger3090 Linux - Networking 1 12-07-2004 08:13 AM
DHCP Server MAC Address found, IP address not assigned wmburke Linux - Wireless Networking 17 11-17-2004 10:33 AM
why linux DHCP provide reverse ip address to itd node? arpit Linux - Networking 0 05-30-2004 02:51 AM
MAC Address Encap Vs DHCP zooma Linux - Networking 0 11-21-2001 09:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:54 AM.

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
Open Source Consulting | Domain Registration