Re: Bug in Graphical Network Configuration???



On Thu, 2006-08-24 at 22:24 +0800, Deepak Shrestha wrote:
After that I used the /etc/hosts and changed the settings and changed
my hostname from previous already.

The hosts file doesn't set your hostname, it just associates DNS names
and IP addresses. Elsewhere, the hostname is set.

Now my ISP's DNS was down and today they gave me a new DNS address.
This time I used again the graphical tool to set the new DNS address.
Reactivated the network card. What happened was my hostname was
changed from current name to previous one without my knowledge. I
didn't notice the problem till all other windows machines were unable
to reach the webpage hosted on it.

Sounds like yet another issue. Those other PCs don't use its hosts file
to find it, they use their own or a DNS server. You can blank out your
hosts file, and it won't affect other PCs from finding it.

What do you mean by they gave you a new "DNS address", though? They
changed your hostname, IP address, told you to use different IP
addresses to access their DNS servers at, or something else?

I had to reedit the /etc/hosts file to change my hostname and
reactivate the network card to fix the problem.

This made me think that "system-config-network" doesn't rely on the
/etc/hosts files. It must have its own backup file which get rewritten
in /etc/hosts file after some modification

# locate hosts |grep /etc
/etc/hosts
/etc/sysconfig/networking/profiles/default/hosts
...[snip]...

It's been a while since I played with dialup, but I think the idea was,
during dialup to use one as a template, and modify the /etc/hosts while
connected, then put it back as it was after disconnection. I can
remember that malarkey with the /etc/resolv.conf file, but I can't
really remember what changes were made to hosts files.

If you edit, and restart the network, out of sequence, you might have a
bit of confusion.

--
(Currently running FC4, occasionally trying FC5.)

Don't send private replies to my address, the mailbox is ignored.
I read messages from the public lists.

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



Relevant Pages

  • Re: Is there any point to full host names in /etc/hosts ?
    ... Minor quibble - a given hostname OR IP address should appear on one ... attempt to get the address from the DNS, ... which translates to 'check the hosts file, and if the hostname is not ... found, check NIS+ and if the hostname is not found check NIS, and if the ...
    (comp.os.linux.networking)
  • Re: Unable to resolve hostname (winsock problem?)
    ... > The only thing in my hosts file is localhost. ... > <hostname> to force DNS hostname resolution and this morning, ... the problem occurs when I don't try to resolve hostnames for a while. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Changing Host name help please
    ... foo foo.localdomain ... DNS, simply use your machine's IP address on the Windows machine, ... Another common step is to ensure that hostname broadcast by CUPS is ... the CUPS hostname and its IP address in the Windows hosts file. ...
    (Fedora)
  • Re: changing host name
    ... Set internal hostname here ... The hosts file can be used by the machine for it to work out what names ... and presume that it's hostname is the first one listed there. ... router doesn't list them in DHCP Client Status. ...
    (Fedora)
  • Re: DNS
    ... >> IP hostname ... > Most people haven't been doing that since the advent of DNS, ... The hosts file works nicely in this case. ... And unlike DNS, it can be ...
    (Debian-User)