localhost.localdomain???

localhost.localdomain???

Post by Boris Benk » Wed, 10 Mar 1999 04:00:00



Hi there!

I have the following problem:

I have two installations of RH 5.2. Both were installed without problems
at all...
But one of them presents itself as localhost and one of them presents
itself corectly.
Please note that I'm using name server and name server responds
correctly (I verified that).
i.e. it maps from name -> IP and from IP -> name correctly for both
machines.

I dig a little bit around the init scripts and I found that the name of
the host is determined in

/etc/sysconfig/network-scripts/ifup-post

Here is the snippet:

if [ -n "$NEEDHOSTNAME" -a ${DEVICE} != lo ]; then
    IPADDR=`ifconfig ${DEVICE} | grep 'inet addr' |
            awk -F: '{ print $2 } ' | awk '{ print $1 }'`
    eval `/bin/ipcalc --silent --hostname ${IPADDR}` && set_hostname
$HOSTNAME
fi

Even more weird is that /bin/ipcalc RETURNS the correct hostname while
the system is running.

I set the name of the machine by hand in:

/etc/sysconfig/network

It gets the correct name now... I'm wondering why the hostname wasn't
set properly with original installation.

=b

--
============================================================================



Sluba za informatiko                 | Phone: (work) +386 69 31 676
                                      |        (ISDN) +386 69 14 632
                                      |        (home) +386 69 37 499
===========================================================================

 
 
 

1. Sendmail problem: localhost.localdomain

I,ve installed Sendmail on a Linux Mandrake 8.1,
When i try to send my mails trought a PHP script (with Apache) they come

Wich could be the problem?
At first the system taked long time to send emails, cause a lot of
errors generated; then i put in the /etc/hosts file the correct string
in place of the instruction "localhost.localdomain localhost" and the
time spedition got normal.
What are "localhost" and "locadomain" i find in configuration files?
Are they variables i can set somewhere once for all or i have to change
manually every time i see them in a configuration file (as in the case
of hosts)?
In that case, where can i find them in Sendmail configuration file?

Thanks.
Gabriele

--
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG

2. Advice requested: kerneld & kmod

3. Newbie vs localhost.localdomain RH 7.3

4. Eurone M598 audio?

5. localhost.localdomain

6. Squid configuration

7. Changing localhost.localdomain in msg id

8. X and Orchid (EISA) cards, which chip set do they use?

9. setting localhost.localdomain

10. How do I get the "localhost.localdomain" off Webmin screen?

11. need clarification on localhost.localdomain usage

12. Changing from localhost.localdomain?

13. change default localhost.localdomain name?