Networking Forums

Networking Forums > Computer Networking > Linux Networking > Fedora has let me down....

Reply
Thread Tools Display Modes

Fedora has let me down....

 
 
dpdoughe@allvantage.com
Guest
Posts: n/a

 
      12-08-2005, 04:47 PM
Daemon programs where ever ye' be that overwrite /etc/hosts I rebuke
thee!
Foul and awful sprites that contrive to overwrite /etc/resolv.conf I
cast thee out and place
a hex on the whole lot of ye!!

I need an aspirin....

Seriously though, the programs that do this overwriting should be
identified and removed from Fedora (and any other linux distributions).
This default behavior is very undesirable. They make laptop
networking a real pain and they seem to get overwritten in
unpredictable times/ways. I still have not identified the programs
that do it (Is there a way?). The selective removal of the second line
below from /etc/hosts seems to occur randomly and leads to mysterious
loss of connectivity, license managers failing etc. There must be some
program that reads and rewrites this file and just leaves
out that line (dunno??)

127.0.0.1 localhost.localdomain localhost
127.0.0.1 mylaptop.localdomain mylaptop # This line is
automatically delete "sometimes"


Also, if I have a nameserver at one location where I use my laptop then
go to a new location where a different nameserver is used then the
/etc/resolve.conf being overwritten can lead to problems.

These defaults behaviors are definitely bad design. Automatic
configuration of network connections should be an "add-on" feature that
must be explicitly selected for. Fedora has let me down....

 
Reply With Quote
 
 
 
 
Allen Kistler
Guest
Posts: n/a

 
      12-08-2005, 05:22 PM
(E-Mail Removed) wrote:
> ...
>
> 127.0.0.1 localhost.localdomain localhost
> 127.0.0.1 mylaptop.localdomain mylaptop # This line is
> automatically delete "sometimes"


Can't say I've ever seen anything overwrite /etc/host, except for my own
judicious use of vi....

> Also, if I have a nameserver at one location where I use my laptop then
> go to a new location where a different nameserver is used then the
> /etc/resolve.conf being overwritten can lead to problems.
>
> These defaults behaviors are definitely bad design. Automatic
> configuration of network connections should be an "add-on" feature that
> must be explicitly selected for. Fedora has let me down....


/etc/resolv.conf getting rewritten is part of DHCP. How else do you
expect to dynamically configure a DNS server and default domain?
Perhaps the bad design exists in the network that expects resolv.conf
never to change on a mobile device.
 
Reply With Quote
 
dpdoughe@allvantage.com
Guest
Posts: n/a

 
      12-08-2005, 06:41 PM
I'm no expert in networking but I would have **expected** something
like this,

I'd like to maintain a list of trusted (optimally, authenticated in
some way) nameservers. This list can only be added to or removed by
the local user or adminstrator (someone with write permissions to the
list anyway...) . When connecting, the local DHCP should make a
**request** to the user/administrator that the nameserver be added into
the "trusted" list. If it is, then we use that DNS. If not, then we
try to use a DNS in the trusted list. If those all fail then we don't
connect and give a reason why (DNS failure). Doesn't SSH do some
similar tactic for authentication?

This behavior could be relaxed so that all requests are automatically
accepted to something like current behavior, but I still don't see why
DNS information is overwritten in /etc/resolve.conf. Why not a list
and the most recent addition being tried first? What happens if the
suggested DNS is not working or is bogus? I'd like to be made aware of
the fact that it's down for example and that's why connections are not
going through. More stringently, if it's bogus, I'd like a way to see
that it fails some authentication step. Like maybe I encrypt something
using the DNS server's public key and it tries to decrypt using it's
private key. Dunno...?

Fedora should be happy that I am using their distribution on a mobile
device. This is a wave of the future. That the way "they" or DHCP
rather decides to overwrite my /etc/hosts file and my
/etc/resolve.conf which ,in fact, silently and mysteriously breaks my
software license managers, internet connections etc should be something
they consider for enhancement if they want to remain competitive in the
mobile market -- yes??

 
Reply With Quote
 
Bit Twister
Guest
Posts: n/a

 
      12-08-2005, 07:11 PM
On 8 Dec 2005 11:41:29 -0800, (E-Mail Removed) wrote:

> This behavior could be relaxed so that all requests are automatically
> accepted to something like current behavior, but I still don't see why
> DNS information is overwritten in /etc/resolve.conf.


dhcp overwites resolv.conf. That allows the network admins to swap DNS
servers which automatically updates their clients.

> What happens if the suggested DNS is not working


good network admin has a backup DNS server. Thay is why you normally
get two servers when you get a lease.


> Fedora should be happy that I am using their distribution on a mobile
> device. This is a wave of the future. That the way "they" or DHCP
> rather decides to overwrite my /etc/hosts file and my
> /etc/resolve.conf which ,in fact, silently and mysteriously breaks my
> software license managers, internet connections etc should be something
> they consider for enhancement if they want to remain competitive in the
> mobile market -- yes??


If you do not want resolv.conf overwrite via dhcp, add an argument to
disable the overwrite.
Maybe something like PEERDNS=no in the interface config file.
 
Reply With Quote
 
Dave {Reply Address in.Sig}
Guest
Posts: n/a

 
      12-08-2005, 08:09 PM
In message <(E-Mail Removed). com>,
(E-Mail Removed) wrote:

>
> 127.0.0.1 localhost.localdomain localhost
> 127.0.0.1 mylaptop.localdomain mylaptop # This line is
> automatically delete "sometimes"
>

Try putting them all on one line then. chances are it'll be just fine.

>
> Also, if I have a nameserver at one location where I use my laptop then
> go to a new location where a different nameserver is used then the
> /etc/resolve.conf being overwritten can lead to problems.
>

That's why dhcp overwrites the file, so you automatically use the nameserver
for the network you happen to be using at the time.

> These defaults behaviors are definitely bad design. Automatic
> configuration of network connections should be an "add-on" feature that
> must be explicitly selected for. Fedora has let me down....


If you've chosen dhcp then by definition you chose automatic configuration.
Pick the static IP address option if you want to go in and manually edit it
every time you change networks.
--
Dave
mail da (E-Mail Removed) (without the space)
http://www.llondel.org
So many gadgets, so little time
 
Reply With Quote
 
prg
Guest
Posts: n/a

 
      12-08-2005, 08:50 PM

(E-Mail Removed) wrote:
> I'm no expert in networking but I would have **expected** something
> like this,


Your initial post confirms this ... :-) But don't despair -- you just
don't understand how dynamic network connectivity is established and
how it behaves/interacts in different environments.

> I'd like to maintain a list of trusted (optimally, authenticated in
> some way) nameservers. This list can only be added to or removed by
> the local user or adminstrator (someone with write permissions to the
> list anyway...) . When connecting, the local DHCP should make a
> **request** to the user/administrator that the nameserver be added into
> the "trusted" list. If it is, then we use that DNS. If not, then we
> try to use a DNS in the trusted list. If those all fail then we don't
> connect and give a reason why (DNS failure). Doesn't SSH do some
> similar tactic for authentication?


Like Allen, I've never seen anything that _overwrites_ /etc/hosts as a
"default" behavior. I would assume it's due to some config change
introduced by something you're running (locally or on the network --
some setups use the /etc/hosts file for quicker lookups or as a kind of
dns cache).

In terms of what you want (describe above) you can provide a static
list of dns servers and not ask for their IPs via DHCP. Some people do
this and use a "public" dns server as a failover (though not very
secure, FWIW).

You can also resort to dnssec (Secure DNS) if you control the servers
and can administer them. This is the only "standards" based means of
dns authentication.

To attempt to confirm the dns server against a "static" list I _think_
will require a script of your own making. Ie., I'm not confident that
there is a "ready made" way to do this via dhclient.conf. You will
need to look through all the documentation re: dhclient -- some 7-8 man
pages altogether.

> This behavior could be relaxed so that all requests are automatically
> accepted to something like current behavior, but I still don't see why
> DNS information is overwritten in /etc/resolve.conf.


That's one of it's main purposes -- to act as a _resolver_ -- for a
machine without a static configuration.

You might want to look here for the Redhat docs:
http://www.redhat.com/docs/manuals/e...rkscripts.html
http://www.redhat.com/docs/manuals/e...e/ch-dhcp.html

You may want to look at the RH9 docs also, though I think the info
above is pretty complete re: RH manuals.

> Why not a list
> and the most recent addition being tried first? What happens if the
> suggested DNS is not working or is bogus?


It's why you have more than 1 (ususally 2 and sometimes 3 name servers
returned by the DHCP server). Bogus? Depends on the network
design/admin. The info comes from the DHCP server (or is static) and
that _can_ be spoofed but has to be on the local subnet (or the rougue
has _really_ infected the lan).

> I'd like to be made aware of
> the fact that it's down for example and that's why connections are not
> going through.


DNS is a _not_ a requirement for network connectivity but you will
indeed notice when it's offline. That's when you ping the dns server
;-)

> More stringently, if it's bogus, I'd like a way to see
> that it fails some authentication step.


DNSSEC is the only authentication standard aimed at DNS. Like most
network security, it's only a small piece of many inter-related parts
and _very_ few networks deploy DNSSEC.

> Like maybe I encrypt something
> using the DNS server's public key and it tries to decrypt using it's
> private key. Dunno...?
>
> Fedora should be happy that I am using their distribution on a mobile
> device. This is a wave of the future. That the way "they" or DHCP
> rather decides to overwrite my /etc/hosts file


I'm not sure that DHCP _can_ overwrite the /etc/hosts file without much
help from the host configuration/scripts. It's _not_ normal behavior
and is certainly _not_ the default.

> and my
> /etc/resolve.conf


This is what /etc/resolve.conf is for. You don't want it to change?
Don't use DHCP ;-) Or supply static dns IPs and configure dhclient
_not_ to ask for dns IPs.

> which ,in fact, silently and mysteriously breaks my
> software license managers, internet connections etc


Not sure about your laptop setup or the lan(s) you run it on or your
licenses, but these are _not_ Fedora or DNS or DHCP design problems.
There is a misconfiguration and/or conflict somewhere.

>should be something
> they consider for enhancement if they want to remain competitive in the
> mobile market -- yes??


No.

You may also want to see if your laptop is using ifplugd (Hot Plug) to
configure the ethernet port. It's usually quite good, but can have
quirks/problems with some laptops that may require configuring by hand.
You can check here:

http://0pointer.de/lennart/projects/ifplugd/

And you may want to set up different network profiles. As with
ifplugd, laptop/mobile units can make good use of them in many
scenarios.

And you _may_ want to disable Zeroconf in your startup -- especially if
you don't use a wireless connection.

BTW, the lines in your /etc/hosts file are "normal". The first line is
_necessary_ and the second line just injects an additional "host name"
to be associated with the loopback interface. Could also appear on the
first line with localhost like mine does:

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 pbrain localhost.localdomain localhost

hth,
prg

 
Reply With Quote
 
dpdoughe@allvantage.com
Guest
Posts: n/a

 
      12-09-2005, 01:46 AM
So after digging some I've identified that the program that is goofing
up my /etc/hosts file is the standard RedHat/Fedora
/usr/bin/system-control-network! Every time I try to change a
configuration, say to to add or modify _any_ of my network connections,
then click on "Save" it will rewrite the /etc/hosts file incorrectly!!
It deletes any lines giving alternates for 127.0.0.1 as mentioned
above, for example, it always deletes the second line in:

127.0.0.1 mylaptop.localdomain mylaptop
127.0.0.1 localhost.localdomain localhost #Deletes this line on
any save of any changes to any network configuration.

I'd classify that as a bug in the system-control-network utility and it
is also inconsistent since it
allows multiple lines to define alternates for other IPs besides the
loopback. Is there a Bugzilla for that?

As posters mention then, it is known that /etc/resolve.conf is
overwriten by dhcp. I am still not sure if this is entirely desirable,
maybe the two issues are related, but I can think of a number of ways
of "resolving" those issues.

Thanks to posters.

 
Reply With Quote
 
dpdoughe@allvantage.com
Guest
Posts: n/a

 
      12-09-2005, 02:01 AM
I meant,

127.0.0.1 localhost.localdomain localhost
127.0.0.1 mylaptop.localdomain mylaptop # This line is
automatically deleted "always"
#
by /usr/bin/system-control-network

 
Reply With Quote
 
prg
Guest
Posts: n/a

 
      12-09-2005, 02:19 AM

dpdou...@allvantage.com wrote:
> So after digging some I've identified that the program that is goofing
> up my /etc/hosts file is the standard RedHat/Fedora
> /usr/bin/system-control-network! Every time I try to change a
> configuration, say to to add or modify _any_ of my network connections,
> then click on "Save" it will rewrite the /etc/hosts file incorrectly!!
> It deletes any lines giving alternates for 127.0.0.1 as mentioned
> above, for example, it always deletes the second line in:
>
> 127.0.0.1 mylaptop.localdomain mylaptop
> 127.0.0.1 localhost.localdomain localhost #Deletes this line on
> any save of any changes to any network configuration.
>
> I'd classify that as a bug in the system-control-network utility and it
> is also inconsistent since it
> allows multiple lines to define alternates for other IPs besides the
> loopback. Is there a Bugzilla for that?


It's a kinda bug, IMO, but it's been there since RH7.? (RH8 for sure).
There _is_ somewhere deep in the docs mentioned that you should not mix
gui network admin/config tools and text editing for precisely the
reason you've experienced. Some of the ethX files are similarly
affected, IIRC.

BTW,
127.0.0.1 localhost.localdomain localhost
should always be the _first_ line. If you want mylaptop to work as a
hostname in a consistent manner, it should read
127.0.0.1 mylaptop localhost.localdomain localhost
which you may need to set by using the Network Configuration dialog.
At the prompt...
$ neat
[enter root password]
and go to Hosts tab.

But you can't intermix gui editing _and_ use a text editor without
heartbun.

> As posters mention then, it is known that /etc/resolve.conf is
> overwriten by dhcp. I am still not sure if this is entirely desirable,
> maybe the two issues are related, but I can think of a number of ways
> of "resolving" those issues.
>
> Thanks to posters.


 
Reply With Quote
 
dpdoughe@allvantage.com
Guest
Posts: n/a

 
      12-09-2005, 02:34 AM
"It's a kinda bug, IMO, but it's been there since RH7.? (RH8 for sure).
"

No doubt about it -- it is a bug. Even I can write a GUI that parses a
text file correctly. I really don't care how long it's been there.

"You can't intermix gui editing _and_ use a text editor without
heartbun"

Why don't we just forget computers altogether then and resort to moans,
grunts, and pounding the earth with wooden clubs? And my bun doesn't
look anything like a heart....much.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
autofs from non-Fedora to Fedora 16 Kevin the Drummer Linux Networking 9 04-17-2012 06:28 AM
fedora 3 rancid moth Linux Networking 2 04-22-2005 03:28 PM
Strange SSH halting problem between Fedora Core 2/Fedora Core 3 Jonathan Abbey Linux Networking 4 12-03-2004 05:00 PM
Installed Fedora, can't telnet from PC into Fedora machine? Santa Linux Networking 5 11-15-2004 05:25 AM
Fedora 2 - Can't Get on LAN Luke Linux Networking 5 09-26-2004 05:16 AM



1 2 3 4 5 6 7 8 9 10 11