LinuxQuestions.org
Review your favorite Linux distribution.
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
 
LinkBack Search this Thread
Old 01-18-2005, 08:06 PM   #1
GUIPenguin
Member
 
Registered: Aug 2004
Location: Maine
Distribution: Gentoo Linux
Posts: 239

Rep: Reputation: 30
Hostname question


This is probably a stupid question but....

doesnt the 'hostname' command apply a hostname that is the same to all interfaces?

If I am using fedora core 3, how could I change the hostname for different interfaces?

like eth0 having a hostname of wireless-john
and eth1 having a hostname of ethernet-john


maybe this is different in linux but cant you just specify a hostname without a domain like in windows?

maybe there is somthing im not getting, but I would like a hostname to match that in our schools DHCP server for each interface and not just one hostname

thanks -john

:Edit when I do use the hostname command I then cant edit my /etc/hosts becouse whenI do from any program I get Xlib connection to ":0.0" refused by server No protocol specified ?

Last edited by GUIPenguin; 01-18-2005 at 08:44 PM.
 
Old 01-18-2005, 08:59 PM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 65
I'm not sure exactly what your looking for here, but I'll try and explain to you how it works using my machines as an example.

I've got 7 machines.

They have the following hostnames:

stewie
lois
meg
brian
peter
chris
quagmire

All of these machines have the same dnsdomainname (lets say it is blah.com).

Now, from any machine on the internet peter.blah.com points to my machine named peter. If i'm logged into quagmire and I ssh to peter (without the domain name) it will automatically search the DNS records for my domain and find peter.

What you basically need to do is put the local IP's and hostnames of your machines on the local DNS server so you can access all your machines locally without using domain names or ip's.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
New User question: Get hostname cpopham Mandriva 4 06-12-2005 10:56 PM
hostname question?? rnj Linux - Newbie 1 10-08-2004 07:09 AM
hostname question wendallsan Linux - Networking 4 10-16-2003 04:46 PM
Hostname Question darkfnord Linux - Newbie 1 09-04-2003 07:27 PM
hostname question (urgent) dincer80 Linux - Networking 11 07-31-2003 07:01 AM


All times are GMT -5. The time now is 01:48 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration