Re: Hostname

From: Mark Eackloff (meackloff_at_cox.net)
Date: 09/23/04

  • Next message: Tobias: "Re: spamassassin + exchange"
    Date: Thu, 23 Sep 2004 02:27:43 -0400
    
    

    Alexander Dalloz wrote:
    > On Sun, 01 Aug 2004 17:07:53 -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
    >>
    >>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
    >
    >

    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.


  • Next message: Tobias: "Re: spamassassin + exchange"

    Relevant Pages

    • Re: Hostname
      ... > 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. ... The end of the ifup script execs ifup-post. ...
      (comp.os.linux.networking)
    • Re: (was Re: setting FQDN in /etc/hosts)
      ... There should be a space before the word localhost, ... the hostname command will tell you what ... 503 Leafnode must have a unique fully-qualified domain name. ... ## This is the NNTP server leafnode fetches its news from. ...
      (news.software.readers)
    • Re: HP-UX / VUE trouble
      ... The correct hostname is in /etc/src.sh. ... gateway and the definition of localhost as well. ... mserve allow 127.0.0.1 unknown mysystemname mysystemname.domain localhost ... in spc and mserve allow. ...
      (comp.sys.hp.hpux)
    • Re: OEs DNS checking doesnt work
      ... If an IP address works, but a hostname does, the problem is ... probably with the interaction with the name server, ... to be sure outgoing mail now works. ... your ISP if that was intentional. ...
      (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
    • Re: Help beautify ugly heuristic code
      ... > mean anything except to the ISP). ... how much my code and yours differ in the detection process (i.e. where are ... Heuristically checks whether hostname is likely to represent ... seemingly random serial numbers in the hostname are also a hint ...
      (comp.lang.python)