|
Home > Archive > Red Hat Configuration > September 2004 > Hostname
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Schewdent 2004-07-31, 5:51 pm |
| Hi,
When I set up my Redhat 9 box, my hostname was set to just
localhost.localdomain . However when I boot up now, after being connected
to the Internet, I get a "Welcome to 3342-hello-myisp.com"-ish message,
ie. it's changed the hostname to that (I'm still seeing the "setting
hostname to localhost.localdomain on every bootup though). Can someone
please explain the intricacies of what's going on? I know that the
computer gets itself an IP address via DHCP, what's the program on MY
machine that handles this, and how do I configure it?
I want it to stop changing the bloody name to whatever my ISP feels I
should be called at the moment. However,... I'd *also* like to know
what name I WOULD have been assigned, if I want to, heh heh 
How do I do this?
Thanks for all your help,
Schewdent.
| |
| Bit Twister 2004-07-31, 5:51 pm |
| On Sun, 01 Aug 2004 00:02:25 GMT, Schewdent wrote:
> Hi,
>
> When I set up my Redhat 9 box, my hostname was set to just
> localhost.localdomain . However when I boot up now, after being connected
> to the Internet, I get a "Welcome to 3342-hello-myisp.com"-ish message,
Please bookmark the following, very large,
Frequently Asked Questions (faq) Search engine:
http://groups.google.com/advanced_group_search
google_tag_set_hostname in the first box
*linux* in Newsgroup, U need 2 use *, pick English
If you like, a second opinion
hostname changes
Results 1 - 10 of about 11,500 English messages for host name changes
group:*linux*. (2.01 seconds)
| |
| Schewdent 2004-07-31, 5:51 pm |
| On Sat, 31 Jul 2004 23:04:30 +0000, Bit Twister wrote:
> On Sun, 01 Aug 2004 00:02:25 GMT, Schewdent wrote:
>
> Please bookmark the following, very large,
> Frequently Asked Questions (faq) Search engine:
>
> http://groups.google.com/advanced_group_search
> google_tag_set_hostname in the first box
> *linux* in Newsgroup, U need 2 use *, pick English
>
> If you like, a second opinion
> hostname changes
> Results 1 - 10 of about 11,500 English messages for host name changes
> group:*linux*. (2.01 seconds)
Er - I really prefer to talk to a human being mate That's what Usenet is
for. Almost every question here could be answered by a webpage, but I
really prefer the social interaction. Chill 
Schewdent.
| |
| Bit Twister 2004-07-31, 5:51 pm |
| On Sun, 01 Aug 2004 00:37:19 GMT, Schewdent wrote:
>
> Er - I really prefer to talk to a human being mate That's what Usenet is
> for.
Please read http://www.catb.org/~esr/faqs/smart-questions.html
> Almost every question here could be answered by a webpage, but I
> really prefer the social interaction.
Join a chat group then.
> Chill 
Why should I have to retype what I have already typed because you are
too lazy use the provided link to the question.
| |
| Alexander Dalloz 2004-07-31, 8:47 pm |
| On Sun, 01 Aug 2004 00:37:19 +0000 Schewdent wrote:
> Er - I really prefer to talk to a human being mate That's what Usenet is
> for. Almost every question here could be answered by a webpage, but I
> really prefer the social interaction. Chill 
> Schewdent.
Join a local LUG (Linux User Group) and have a lot of social interaction.
What you ask is answered a lot of times already.
Btw. please don't crosspost to a couple of groups. [F'up set.]
Alexander
--
Alexander Dalloz | Enger, Germany
PGP key valid: made 13.07.1999
PGP fingerprint: 2307 88FD 2D41 038E 7416 14CD E197 6E88 ED69 5653
| |
| George 2004-08-01, 2:47 am |
| "Schewdent" <dont@mail.com> wrote in
news:pan.2004.07.31.23.02.14.537930@mail.com:
> Hi,
>
> When I set up my Redhat 9 box, my hostname was set to just
> localhost.localdomain . However when I boot up now, after being connected
> to the Internet, I get a "Welcome to 3342-hello-myisp.com"-ish message,
> ie. it's changed the hostname to that (I'm still seeing the "setting
> hostname to localhost.localdomain on every bootup though). Can someone
> please explain the intricacies of what's going on? I know that the
> computer gets itself an IP address via DHCP, what's the program on MY
> machine that handles this, and how do I configure it?
>
> I want it to stop changing the bloody name to whatever my ISP feels I
> should be called at the moment. However,... I'd *also* like to know
> what name I WOULD have been assigned, if I want to, heh heh 
>
> How do I do this?
>
>
> Thanks for all your help,
>
>
> Schewdent.
>
I had the same problem, using comcast.net cable internet. Someone told me
to go into my network settings, and add a subdomain (I already had it set
to localhost.localdomain). So I changed it to local.localhost.localdomain,
and now it works fine, comes up as local. I guess it's just a quirk of
some ISPs.
Geo
| |
| Michael Heiming 2004-08-01, 2:47 am |
| -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
NotDashEscaped: You need GnuPG to verify this message
[ Followup-To comp.os.linux.networking ]
In comp.os.linux.networking Schewdent <dont@mail.com> suggested:
> On Sat, 31 Jul 2004 23:04:30 +0000, Bit Twister wrote:
[..]
[vbcol=seagreen]
[vbcol=seagreen]
> Er - I really prefer to talk to a human being mate That's what Usenet is
> for. Almost every question here could be answered by a webpage, but I
> really prefer the social interaction. Chill 
Please keep in mind that this isn't a corporate help-desk, none is
payed here to answer your questions and the amount of regulars
knowledge able enough to answer most questions is rather limited.
Those people spend parts of their free time to help out others
for one or another reason, many just to give back what they
received from the community. That's how Linux works.;)
Searching the archives for a solution is always a good idea and
can with a little luck, offer you one in a second. If there are
still problems, feel free to come back and give us enough real
data (commands/error messages) what you have done and I'm sure
there are people willing share their deep knowledge with you.
--
Michael Heiming (GPG-Key ID: 0xEDD27B94)
mail: echo zvpunry@urvzvat.qr | PERL -pe 'y/a-z/n-za-m/'
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFBDKeWAkPEju3Se5QRAh2eAJ9GMAsd9fwL
+BmqcYpGtnw13vigzQCfYTBZ
GAedyC/pb45PktrVLKSBssg=
=f0rU
-----END PGP SIGNATURE-----
| |
| Alexander Dalloz 2004-08-01, 7:47 am |
| On Sun, 01 Aug 2004 00:51:21 -0500 George wrote:
> I had the same problem, using comcast.net cable internet. Someone told me
> to go into my network settings, and add a subdomain (I already had it set
> to localhost.localdomain). So I changed it to local.localhost.localdomain,
> and now it works fine, comes up as local. I guess it's just a quirk of
> some ISPs.
>
> Geo
No it is not. It has a sense why the hostname is dynamicall changed when
the poor admin did set it to localhost.
Alexander
--
Alexander Dalloz | Enger, Germany
PGP key valid: made 13.07.1999
PGP fingerprint: 2307 88FD 2D41 038E 7416 14CD E197 6E88 ED69 5653
| |
| George 2004-08-01, 5:50 pm |
| Alexander Dalloz <alexander.dalloz@uni-bielefeld.de> wrote in
news:pan.2004.08.01.13.14.37.171532@uni-bielefeld.de:
> On Sun, 01 Aug 2004 00:51:21 -0500 George wrote:
>
>
> No it is not. It has a sense why the hostname is dynamicall changed
> when the poor admin did set it to localhost.
>
> Alexander
>
>
I'm so glad that you're so thoroughly and perfectly knowledgable about
every single American ISP that you can pontificate like this.
Geo
| |
| Alexander Dalloz 2004-08-01, 5:50 pm |
| On Sun, 01 Aug 2004 11:24:43 -0500 George wrote:
> I'm so glad that you're so thoroughly and perfectly knowledgable about
> every single American ISP that you can pontificate like this.
>
> Geo
Got your irony. Though it is a network scripts function of at least Redhat
/ Fedora and nothing the ISP does.
Alexander
--
Alexander Dalloz | Enger, Germany
PGP key valid: made 13.07.1999
PGP fingerprint: 2307 88FD 2D41 038E 7416 14CD E197 6E88 ED69 5653
| |
| George 2004-08-01, 5:50 pm |
| Alexander Dalloz <alexander.dalloz@uni-bielefeld.de> wrote in
news:pan.2004.08.01.16.59.03.7834@uni-bielefeld.de:
> On Sun, 01 Aug 2004 11:24:43 -0500 George wrote:
>
>
> Got your irony. Though it is a network scripts function of at least
> Redhat / Fedora and nothing the ISP does.
>
> Alexander
Wrong again! Some American ISPs do things a little differently from the
norm, and that can effect Fedora. After I got the help from a mailinglist
user and changed my machine name, I called Comcast about it and they said
Yes, what I described as my problem does happen. In my case the main
reason had something to do with setup for IE, so said Comcast. It wasn't
irony, it was sarcasm.
G
| |
| Alexander Dalloz 2004-08-01, 5:50 pm |
| On Sun, 01 Aug 2004 17:07:53 -0500 George wrote:
>
> Wrong again! Some American ISPs do things a little differently from the
> norm, and that can effect Fedora. After I got the help from a mailinglist
> user and changed my machine name, I called Comcast about it and they said
> Yes, what I described as my problem does happen. In my case the main
> reason had something to do with setup for IE, so said Comcast. It wasn't
> irony, it was sarcasm.
>
> G
I don't judge the reasons ISP have for passing specific DHCP information.
But the issue with localhost as hostname is a Fedora side thing. You are
wrong if you think that it depends on the ISP. If you only believe your
eyes and not my words I suggest you investige the network setup scripts
your own. Maybe start at line 202 in
/etc/sysconfig/network-scripts/network-functions and chech it's call in
/etc/sysconfig/network-scripts/ifup and
/etc/sysconfig/network-scripts/ifup-post. If you think yourself a bit
about the backgrounds, I suspect you will quickly understand that a
hostname localhost for a networked host is not valid.
Alexander
--
Alexander Dalloz | Enger, Germany
PGP key valid: made 13.07.1999
PGP fingerprint: 2307 88FD 2D41 038E 7416 14CD E197 6E88 ED69 5653
| |
| Mark Eackloff 2004-09-23, 9:13 am |
| Alexander Dalloz wrote:
> On Sun, 01 Aug 2004 17:07:53 -0500 George wrote:
>
>
>
>
>
> I don't judge the reasons ISP have for passing specific DHCP information.
> But the issue with localhost as hostname is a Fedora side thing. You are
> wrong if you think that it depends on the ISP. If you only believe your
> eyes and not my words I suggest you investige the network setup scripts
> your own. Maybe start at line 202 in
> /etc/sysconfig/network-scripts/network-functions and chech it's call in
> /etc/sysconfig/network-scripts/ifup and
> /etc/sysconfig/network-scripts/ifup-post. If you think yourself a bit
> about the backgrounds, I suspect you will quickly understand that a
> hostname localhost for a networked host is not valid.
>
> Alexander
>
>
Since the original post asked for the "intricacies" here's a little more
mind numbing detail. At after init starts rc.sysinit checks for a
hostname. If it gets nothing back (I guess this would be always) it
sets it to localhost. Later the init.d/network script runs
sysconfig/ifup for each sysconfig/network-scripts/ifcfg-ethX. X
starting at 0 in most cases.
The end of the ifup script execs ifup-post. ifup-post checks to see if
a hostname is needed. (Look for the call to need_hostname.)
need_hostname returns true if the hostname is null or "localhost".
ifup-post then gets the hostname by calling ipcalc.
One side effect of this is that the first ethernet card sets the
hostname. For the second card, ifup-post calls need_hostname which
returns false because the a "valid" hostname was set by the first card.
Of course if you don't like the way it works you can always change it.
|
|
|
|
|