[opensuse] Re: hostname on command prompt is different than hostname in hostname/DNS tab under network settings in YAST
- From: sundar mahadevan <sundarmahadevan82@xxxxxxxxx>
- Date: Sat, 23 May 2009 16:16:55 -0400
Hi Anders,
As of now, my system does not have the localhost entry in /etc/hosts
and still works fine. And btw, the localhost ip looks like 127.0.0.1
and so do i set to 127.0.0.1 for sunny1 and 127.0.0.2 for sunny2
On Sat, May 23, 2009 at 4:04 PM, sundar mahadevan
<sundarmahadevan82@xxxxxxxxx> wrote:
I figured out what the issue was. I had 2 nics, one with static ip and--
other DHCP.
The /etc/hosts file has the following entries:
10.1.1.1 sunny1.ezhome.com sunny1
10.1.1.2 sunny2.ezhome.com sunny2
192.168.2.4 sunny1.ezhome.com sunny1
192.168.2.3 sunny2.ezhome.com sunny2
The DHCP is supposed to assign 192.168.2.4 to sunny1 but instead, it
allocated 192.168.2.3 and setup the hostname to be sunny2. It happened
on both my nodes and hence this issue. But now i have made the ips to
be static instead of DHCP.
Many Thanks to all members who tried to help me on this issue.
On Sat, May 23, 2009 at 3:18 PM, sundar mahadevan
<sundarmahadevan82@xxxxxxxxx> wrote:
To add one more detail on this issue, the uname -a shows the same
value as the command "hostname" on the shell prompt.
On Sat, May 23, 2009 at 3:12 PM, sundar mahadevan
<sundarmahadevan82@xxxxxxxxx> wrote:
Hi members,
The subject says it all. When i enter hostname on the shell prompt, it
gives me "sunny1" as the hostname while the hostname in hostname/DNS
tab under network settings in YAST says "sunny2". I have 2 boxes and
its the same case in both. On the other box, the names are vice versa.
Both boxes are on opensuse 11.1
1) I recently removed the localhost entry in /etc/hosts file Does it
have any impact on this issue.
2) And btw, where does hostname on shell prompt retrieve its value from?
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
- Follow-Ups:
- References:
- [opensuse] hostname on command prompt is different than hostname in hostname/DNS tab under network settings in YAST
- From: sundar mahadevan
- [opensuse] Re: hostname on command prompt is different than hostname in hostname/DNS tab under network settings in YAST
- From: sundar mahadevan
- [opensuse] Re: hostname on command prompt is different than hostname in hostname/DNS tab under network settings in YAST
- From: sundar mahadevan
- [opensuse] hostname on command prompt is different than hostname in hostname/DNS tab under network settings in YAST
- Prev by Date: [opensuse] Re: hostname on command prompt is different than hostname in hostname/DNS tab under network settings in YAST
- Next by Date: Re: [opensuse] Re: hostname on command prompt is different than hostname in hostname/DNS tab under network settings in YAST
- Previous by thread: [opensuse] Re: hostname on command prompt is different than hostname in hostname/DNS tab under network settings in YAST
- Next by thread: Re: [opensuse] Re: hostname on command prompt is different than hostname in hostname/DNS tab under network settings in YAST
- Index(es):
Relevant Pages
|