• Re: DHCP and static addresses, nothing to do with Re: Who:Bookwormv.Tri

    From gene heskett@21:1/5 to tomas@tuxteam.de on Tue Apr 1 18:30:01 2025
    On 4/1/25 08:59, tomas@tuxteam.de wrote:
    On Tue, Apr 01, 2025 at 01:36:21PM +0100, mick.crane wrote:
    On 2025-04-01 13:21, tomas@tuxteam.de wrote:
    On Tue, Apr 01, 2025 at 12:42:46PM +0100, mick.crane wrote:

    [...]

    the spaces look wrong to me
    If you mean those:

    192.168.71.122 bpi51e5p.coyote.den bpi51 e5p #3dprinter
    ^^^
    ...
    192.168.71.121 mkspi.coyote.den mkspi xmax3 # 3dprinter
    ^^^
    ... they are OK. They separate alternative host names. They mean
    that 192.168.71.122 responds to "bpi51e5p.coyote.den", but also
    "bpi51" and finally "e5p". Likewise for the other.

    Cheers
    Ah, thanks. I didn't know you could do that.
    Yes, you can put as many space-separated names in a line as you
    like (well: one or more).

    But in a way you are right: the formatting is a bit funny and we
    don't know whether OP means that. My guess is he does.

    =yes. Some of that is spaces and some are tabs, the file does not care.
    Just to make it more interesting, t-bird doesn't paste tabs accurately.

    But I'm far more interested in a critique of the nsswitch.conf also
    attached previously.

    Cheers

    Cheers, Gene Heskett, CET.
    --
    "There are four boxes to be used in defense of liberty:
    soap, ballot, jury, and ammo. Please use in that order."
    -Ed Howdershelt (Author, 1940)
    If we desire respect for the law, we must first make the law respectable.
    - Louis D. Brandeis

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From tomas@tuxteam.de@21:1/5 to gene heskett on Wed Apr 2 06:30:01 2025
    On Tue, Apr 01, 2025 at 12:25:36PM -0400, gene heskett wrote:
    On 4/1/25 08:59, tomas@tuxteam.de wrote:
    On Tue, Apr 01, 2025 at 01:36:21PM +0100, mick.crane wrote:
    On 2025-04-01 13:21, tomas@tuxteam.de wrote:
    On Tue, Apr 01, 2025 at 12:42:46PM +0100, mick.crane wrote:

    [...]

    the spaces look wrong to me
    If you mean those:

    192.168.71.122 bpi51e5p.coyote.den bpi51 e5p #3dprinter
    ^^^
    ...
    192.168.71.121 mkspi.coyote.den mkspi xmax3 # 3dprinter
    ^^^
    ... they are OK. They separate alternative host names. They mean
    that 192.168.71.122 responds to "bpi51e5p.coyote.den", but also
    "bpi51" and finally "e5p". Likewise for the other.

    Cheers
    Ah, thanks. I didn't know you could do that.
    Yes, you can put as many space-separated names in a line as you
    like (well: one or more).

    But in a way you are right: the formatting is a bit funny and we
    don't know whether OP means that. My guess is he does.

    =yes. Some of that is spaces and some are tabs, the file does not care. Just to make it more interesting, t-bird doesn't paste tabs accurately.

    But I'm far more interested in a critique of the nsswitch.conf also attached previously.

    In my other answer [1] I quoted the one line of nsswitch.conf which seemed relevant to me: files is first for DNS, so if I didn't miss anything all
    seems well.

    Cheers

    [1] that's the downside of letting threads grow so many arms.
    --
    t

    -----BEGIN PGP SIGNATURE-----

    iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCZ+y8ugAKCRAFyCz1etHa RlXRAJ0RXca092wVtqADKPysB7eL1K4T/ACaA9R1yCNDNZaTcDGTMyXJ6SiqCFM=
    =Nb9y
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From gene heskett@21:1/5 to David Wright on Wed Apr 2 15:20:01 2025
    On 4/2/25 01:28, David Wright wrote:
    On Tue 01 Apr 2025 at 04:58:27 (-0400), gene heskett wrote:
    On 3/31/25 23:02, David Wright wrote:
    On Mon 31 Mar 2025 at 16:35:58 (-0400), gene heskett wrote:
    On 3/31/25 13:55, David Wright wrote:
    I don't know why you have problems with using /etc/hosts for lookups >>>>> on your LAN. I use it here without any problems, and it has to work
    because there's no DNS server in my router (too cheap).

    $ grep hosts: /etc/nsswitch.conf
    hosts: files mdns4_minimal [NOTFOUND=return] dns
    because files doesn't work in bookworm, I had to:

    grep hosts: /etc/nsswitch.conf
    hosts: files mdns4_minimal [NOTFOUND=return] dns myhostname
    to make the hosts file work
    I don't know why you're using libnss-myhostname,
    neither do I David, it doesn't make sense, but I've just found that
    file, except for that added word, is far different overall than the
    man page example. So I've commented that word back out, and here is
    what I have now, which bears no resemblance to the man page example;
    So here you are, poking your system in one location, without taking
    account of how it's configured elsewhere. Perhaps that's how you find yourself in difficulties in the first place?

    "I don't know why you're using libnss-myhostname" was an assumption
    on the basis of your saying that you had to add "myhostname" to
    make your system work. If you poke your system as randomly as you have
    just done, then how would we have confidence in that being the one
    change that originally made it work, and not anything else. We don't
    even have solid evidence of (or the reason for) the libnss-myhostname
    package being installed at all.

    Also, changing configurations on a running system may well solve some
    current problem, but it can affect how the system will boot up the
    next time, and the effects may be deleterious. In any case, you said
    your system is currently working, and took you a great deal of trouble
    to make it do so, yet you're happy to moan about it, and then poke
    around at random, and potentially remove some of the sticking plasters
    that hold it all together.

    you also called my hosts file unconventional, its been updated, is a
    totally private network, so not planet visible as its all my side of
    the router. Whats unconventional.
    What Brian pointed out in the thread: the lack of 127.0.1.1, the
    conventional way in which Debian ensures a host can find its own
    name when the network is not up.

    I can put it back in, but no one has ever explained why.  And since it's
    been gone for 27 years, what name goes with it?

    Ack the man page, it should be coyote.coyote.den, but that has been 192.168.71.3 for that same 27 years.  And for quite some time before,
    when this machine at this address was a full house 68040 amiga. So what
    should I put in there for what the man page says?: 127.0.1.1       thishost.example.org   thishost
    ????

    Experimenting I find the duplication does not seem to generate an error,
    other than I now had to ping itself by address, since the name is now
    found at 127.0.1.1 by pings lookup? I'll leave it in the hosts file as a duplicate,  until I find something that does not work, but it also has
    no effect on the 30 second gui freeze on opening a file I own.

    You seem to have taken umbrage
    against it for no good reason. (ISTR there was a long discussion
    on the subject some years ago on the list.) Substituting it back
    is not a panacea. And no one on this list is likely prepared to
    spend a week, or however long, in unravelling your system.
    Just live with it.
    Easy for you to say, you don't have the aggravation of a machine that
    freezes for 30 seconds, 100+ times a working day.
    31.184.194.81 Sci-Hub.se scihub.se
    BTW, whatever they are, I don't think they're the same host.

    They were an internet site that published scientific papers that should
    have been public domain, for mankinds education but the paywall folks
    sued a couple decades ago and got their site's address legally removed
    from this planets dns system, but it appears they have now run out of
    money so it is now non-responding.  It was still pingable in the summer
    of '24.  I have no objection to the application process details being
    behind a paywall, but I do object to the fundamental theory being held
    for ransom.

    Anyway, thank you David, I appreciate the reply's.

    Cheers,
    David.

    Take care of #1.

    heers, Gene Heskett, CET.

    --
    "There are four boxes to be used in defense of liberty:
    soap, ballot, jury, and ammo. Please use in that order."
    -Ed Howdershelt (Author, 1940)
    If we desire respect for the law, we must first make the law respectable.
    - Louis D. Brandeis

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Greg Wooledge@21:1/5 to David Wright on Thu Apr 3 13:00:01 2025
    On Wed, Apr 02, 2025 at 22:28:24 -0500, David Wright wrote:
    127.0.1.1 coyote.coyote.den coyote
    [...]
    I don't see the point in leaving it there. If you want to send
    something to coyote.coyote.den, why do you want the LAN address
    when 127.0.1.1 is just as good. If the line is correct, it does
    nothing; if it's incorrect, it can cause harm.

    I disagree with you here. The 127.0.1.1 address is a placeholder put
    there by the installer for the more common case where a machine doesn't
    have a fixed LAN IP address. Most home or workplace computers these
    days will get their addresses from DHCP without a reservation, so their internal addresses may vary.

    127.0.1.1 is used when a fixed LAN IP address isn't available. But if
    a fixed LAN IP address *is* assigned, that should be used instead.

    In Gene's case, where all the addressing is manually assigned and static,
    using the traditional approach (192.168.x.y coyote.coyote.den coyote)
    is actually preferred. It allows a single /etc/hosts file to be
    copied across all computers on the LAN without needing to modify it
    on each host.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dan Purgert@21:1/5 to David Wright on Thu Apr 3 13:50:01 2025
    On Apr 02, 2025, David Wright wrote:
    On Wed 02 Apr 2025 at 09:12:24 (-0400), gene heskett wrote:
    [...]
    Experimenting I find the duplication does not seem to generate an
    error, other than I now had to ping itself by address, since the name
    is now found at 127.0.1.1 by pings lookup?

    That's what you want: as the address is in the 127.0.0.0 network,
    pinging it will ping itself, and it gets a reply. It doesn't
    require your LAN to be set up, and AIUI it's like localhost
    (127.0.0.1) in that it doesn't touch the network hardware.

    Indeed, the entirety of 127.0.0.0/8 is the virtual loopback adapter
    (i.e. "localhost").

    --
    |_|O|_|
    |_|_|O| Github: https://github.com/dpurgert
    |O|O|O| PGP: DDAB 23FB 19FA 7D85 1CC1 E067 6D65 70E5 4CE7 2860

    -----BEGIN PGP SIGNATURE-----

    iQIzBAEBCgAdFiEE3asj+xn6fYUcweBnbWVw5UznKGAFAmfuda4ACgkQbWVw5Uzn KGDUthAAhryH2ALeP0YZp/ArDu06t7SfRAqelshONyLZlBrOU+WxdLFkl+KEz5U7 U4AKWFOjxIiEi5eJvZmEO4IXcK20IEsopYsbKd3JIywdqIqFzfk6BSZuQYoGKv9D go0JedQt58/HJ5GwIfLYkWz42JZUiUifZPP4nKUvBAhzMD1W1k16sJGEI+SVBt/X emIVshaQDz5JhjplsphBCKTXb4jAJMGOytBOBUeI8M3Z8yYxeauYZuOO6dUsVCcC 92LEJKMSVLf8PKmBCOyn+P5XRppMPYCTqXoHazBikYo1StjjaFXSdwkSZjDWGETP pjGWNjx0pJjxA8vGnNncyrZhWKbb5wNXEN0GrAgsWGXCt3BGA7yRMegRp5yt4Ct5 7g14gxzMkZ5i02dUouR/MJqTaeAF3J6Gk1fuT6aKHiPp4djdlNnSBh9sbXvkLVR5 /QonImJFkzgevtVCKUb+pmO6pLkT0GOTPX3//z1Fp6L70B5ez2zkNaaXwbAgn/Zi dzqNvyxxJzmk49Q3f54CSyMMSQv+YI82xfEpkqP10mQNykkFNAZop1jv/C0zPRGx XDrvs846k741o4w+EyT8SujEnUUNn7v8nMJSqnPK5JsCee00psh5CCeeWIE7AZIj Owj7mzpnYIhuqzwOkdCcoK2SvXL9HI7hG11so0ImtjVAjWvwYgw=
    =AW2W
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Us
  • From Michael Stone@21:1/5 to David Wright on Thu Apr 3 15:40:01 2025
    On Wed, Apr 02, 2025 at 10:28:24PM -0500, David Wright wrote:
    I don't see the point in leaving it there. If you want to send
    something to coyote.coyote.den, why do you want the LAN address
    when 127.0.1.1 is just as good. If the line is correct, it does
    nothing; if it's incorrect, it can cause harm.

    FWIW, I see absolutely no point in making the change. Debian uses
    127.0.1.1 because it's there regardless of the network configuration,
    but in the case of a static IP there's no particular benefit in doing
    things that way. This entire subthread is a red herring as there's
    nothing particular problematic about the configuration in question.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Greg Wooledge@21:1/5 to Jeffrey Walton on Thu Apr 3 19:30:01 2025
    On Thu, Apr 03, 2025 at 12:59:19 -0400, Jeffrey Walton wrote:
    I think the idea is, software can always use 127.0.1.1 to find the
    host's fully qualified domain name,

    No. Absolutely not. You have it exactly backwards.

    The purpose of putting the "127.0.1.1 my_hostname" line in /etc/hosts
    by default is so programs which need to do so can look up the system's
    hostname and get *any working* IP address for it.

    It may seem implausible these days, but back in the Olde Times, it was
    common for programs like X sessions to look up the system's hostname,
    get an IP address, and then use that IP address for connections.

    In the absence of a discoverable working IP address for the local system,
    X sessions would break. (I don't know if Debian ever had this specific problem, but HP-UX sure did.)

    On a system with a statically configured LAN IP address, it was always
    most desirable to put that address in the hosts file. If you are
    fortunate enough to be in this situation, then your job is done.
    Everything is happy.

    On a system with a dynamically assigned LAN IP address, putting the
    dynamic address in the hosts file causes problems when the address
    changes.

    That's why the 127.0.1.1 hack was developed. It gives you something you
    can put into the hosts file which will work, even if the ethernet
    interface's address changes out from under you.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Michael Stone@21:1/5 to Jeffrey Walton on Fri Apr 4 04:20:01 2025
    On Thu, Apr 03, 2025 at 12:59:19PM -0400, Jeffrey Walton wrote:
    I think the idea is, software can always use 127.0.1.1 to find the
    host's fully qualified domain name, without the need to know real IP
    address. (And what to do with multihomed hosts?)

    It literally doesn't matter. The host knows its own hostname, resolves
    that, then does a lookup on the resolved IP to get the canonical name.
    It does not care what the IP is, it can be 127.0.0.1, 10.0.0.1, 1.1.1.1, whatever. The software does not assume it can get that information by
    resolving 127.0.1.1, and if it did that would be a horrible bug because
    there is no such guarantee. (Most OSs do not do things the way debian
    does.)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Greg Wooledge@21:1/5 to Jeffrey Walton on Fri Apr 4 04:40:01 2025
    On Thu, Apr 03, 2025 at 22:15:57 -0400, Jeffrey Walton wrote:
    Yeah, I'm going to lookup what Stevens has to say about the hosts file
    in TCP/IP Illustrated. I need to figure out where the confusion lies.

    Here's what the Debian manual has to say about it:

    <https://www.debian.org/doc/manuals/debian-reference/ch05.en.html#_the_hostname_resolution>

    The IP address 127.0.1.1 in the second line of this example may not
    be found on some other Unix-like systems. The Debian Installer creates
    this entry for a system without a permanent IP address as a workaround
    for some software (e.g., GNOME) as documented in the bug #719621.

    That's the wrong bug number. <https://bugs.debian.org/719621> says:

    The Debian Installer creates this entry for a system without a
    permanent IP address as a workaround for some software (e.g., GNOME)
    as documented in the bug #316099. http://bugs.debian.org/316099

    And <https://bugs.debian.org/316099> says:

    netcfg (1.13) unstable; urgency=low
    [ Thomas Hood ]
    * If there is no permanent IP address with which the system hostname
    (i.e., that which is returned by the "hostname" command)
    can be associated in /etc/hosts then associate it with address
    127.0.1.1 rather than 127.0.0.1. Associating the system
    hostname with the latter had the unwanted effect of making
    'localhost.localdomain' the canonical hostname associated with
    the system hostname. That is, 'hostname --fqdn' returned
    'localhost.localdomain'.
    (Closes: #316099)
    Programs that access local services at the IP address obtained
    by resolving the system hostname SHOULD NOT DO THIS, but those
    that do so will not be disappointed: most services that listen
    locally listen on all 127/8 addresses, not just on 127.0.0.1.

    The word "GNOME" does not actually appear in #316099. Whatever GNOME
    was doing didn't make it into either of these bug reports.

    I'm just going to assume that it worked similarly to traditional X
    sessions (e.g. the ones on HP-UX), where it looked up the system's
    hostname, and used whatever IP address that returned for connections
    between the X client and server.

    In any case, having the system's hostname map to a nonfunctional IP
    address, or no IP address at all, causes enough problems that the
    127.0.1.1 workaround for systems with no permanent address is a good
    and useful solution.

    It's been in use for two decades now.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dan Purgert@21:1/5 to Greg on Fri Apr 4 12:20:01 2025
    On Apr 03, 2025, Greg wrote:
    On 2025-04-03, Dan Purgert <dan@djph.net> wrote:

    That's what you want: as the address is in the 127.0.0.0 network,
    pinging it will ping itself, and it gets a reply. It doesn't
    require your LAN to be set up, and AIUI it's like localhost
    (127.0.0.1) in that it doesn't touch the network hardware.

    Indeed, the entirety of 127.0.0.0/8 is the virtual loopback adapter
    (i.e. "localhost").

    Doubtless yet another fallacious notion, but I thought IPV6 opened up
    the flood gates of assigning "real" ip addresses to whatever the heck
    Gene's talking about.

    Maybe? I honestly lost the plot to what he's trying to accomplish.

    Everything will still have a "localhost" entry (albeit "::1" instead of
    16 million valid options under 127.0.0.0/8), but yes, everything can
    also have publicly routable addresses as well.


    --
    |_|O|_|
    |_|_|O| Github: https://github.com/dpurgert
    |O|O|O| PGP: DDAB 23FB 19FA 7D85 1CC1 E067 6D65 70E5 4CE7 2860

    -----BEGIN PGP SIGNATURE-----

    iQIzBAEBCgAdFiEE3asj+xn6fYUcweBnbWVw5UznKGAFAmfvsAAACgkQbWVw5Uzn KGD9wRAAvHxDoLw4YMv9VvYaCQO9Luizp1Y8IENmlLmwW+UK6I9z7wNbByeJfbCu YO9z/UjlDmX3MfTEl1kpSX1ei6G5gvt//s4o/EC/JLejBE5RLQsYUGJMFsdcKC9u nNSsU0rBCsBOjf+m58sk0m0hUwBmRZnkeWUDtlpdIZebron/VVbQL3q9FSOWJr/h y23NCANVrxXiETSGVsGYBFbpruUg1dO/b9b/8IdMTnY8LGXsOGQXH9E/6qDHgkJ7 0ASKo+rMWHupdfQkkVhc1f7TymbPK6OIwteoq95I3OZ6wLUyl2RmJ9mQbjmuh6Lj 2VC7t5apTzVmTYMEmQVeAWCGZfLslM7SwIANcJqKm4clGqbOUlAEm/szvdQmSbT/ vQRwykxtgzBteY3tsvtq/bp1K310TNXtNST+acIoc+wl1fSmXmsVJJoMVf80uHJc bCjQ3H6/Y6e30Qsd7roBOwb7QyoZ0HdO7vo5fJbl+f2BfOSPFIJb4kh8Vjj5R8ZP 0e5jnu4Ta8oef03qxpCHTdZoEcqSdyzgJAcwWgM7Rqo26iZsStWJNch1VYSKPWIt k7qzPZaMqFXbpABtFvTCHnoiNi6Wd1Kh1q0+zgLkoYAq+otlM1m79TsgvvNjt+HM AvhycaURROpYWvQHaq0JusJp1TeF9uiMS/EhzALyLaIxjtLrXiw=
    =HAGd
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Us
  • From Dan Purgert@21:1/5 to debian-user@howorth.org.uk on Fri Apr 4 14:00:01 2025
    On Apr 04, 2025, debian-user@howorth.org.uk wrote:
    Greg Wooledge <greg@wooledge.org> wrote:

    I'm just going to assume that it worked similarly to traditional X
    sessions (e.g. the ones on HP-UX), where it looked up the system's hostname, and used whatever IP address that returned for connections between the X client and server.

    I'm confused. Traditional X sessions in my experience use a Unix socket rather than a TCP connection when they are on the same host and don't
    require the use of the hostname at all.

    $ xeyes -display :0.0

    Greg's talking about "Traditional X Sessions" from HP-UX Unix boxes in
    the late 80s / early 90s (I forget exactly when it showed up).

    He's not talking about "Traditional X Sessions" in the sense of "as
    opposed to Wayland" (or otherwise, "as implemented in Linux for the last
    25 years or so").

    --
    |_|O|_|
    |_|_|O| Github: https://github.com/dpurgert
    |O|O|O| PGP: DDAB 23FB 19FA 7D85 1CC1 E067 6D65 70E5 4CE7 2860

    -----BEGIN PGP SIGNATURE-----

    iQIzBAEBCgAdFiEE3asj+xn6fYUcweBnbWVw5UznKGAFAmfvx9sACgkQbWVw5Uzn KGANpRAAnhi+yK2v3MLauOU+Yjqwt9ipyJB/jwONW08DeHLLHvic0BNEKRaT548U oSU7z+cOcxMouoA3qql/NjqiYLEjlnlfw+JR1w8/gEeYu7oDQ0Q/8NNE7si6s92f PE1dqbKCHGLyuc8h736lRdUnTc7pjdrFhiDR7wtdHlEMdmUd93gOSB3Z0uIA894n 54KdhiEd6cZrOsNFhHcqfr8UZPbRNvJlkA2e6HN5C/ZATXNTWOAhbbS+IZEvKJvw CstmiBlc8P78gP02VyazjXFRpQdYjSnoBOuHER9S5Dd3bMGkrJBA4EQ3nytosoZR O096PXob2QB5fZHoj9UvgYT7w7PFpKjz4gHMIZBpONEBCRm7dItfH89ihJCnmcD1 jvB8zKvZNTAz6vfiWtm45Felv4qnx2JfS7DtEOZWYQDUHP5rjmoNmXke52f02PN+ FUaTJjySGtYsh82xAmVPM0y7UpTLWCSi6QMp8OIotK6+Bt5Vs6Xgp4oN03DqD9lj hxuS/j1HFPp1Tzl6dVBV+RVXFU/K6I5eg+PF8UtpN6q472Cr/7dOjdeGBgZcjPym WnO5agL6ExagY+Zh+k4IRiMnYl7fZsjtwUdjjfq2B3B5nsEeY+6FaztTBrrIyvE2 6WIkGNOMQ84dLIgI6Q7u6vL6kCle3CXc5MO8sJSD4vfgysqNlgk=
    =LM2R
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Us
  • From debian-user@howorth.org.uk@21:1/5 to Greg Wooledge on Fri Apr 4 13:20:01 2025
    Greg Wooledge <greg@wooledge.org> wrote:

    I'm just going to assume that it worked similarly to traditional X
    sessions (e.g. the ones on HP-UX), where it looked up the system's
    hostname, and used whatever IP address that returned for connections
    between the X client and server.

    I'm confused. Traditional X sessions in my experience use a Unix socket
    rather than a TCP connection when they are on the same host and don't
    require the use of the hostname at all.

    $ xeyes -display :0.0

    In any case, having the system's hostname map to a nonfunctional IP
    address, or no IP address at all, causes enough problems that the
    127.0.1.1 workaround for systems with no permanent address is a good
    and useful solution.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dan Purgert@21:1/5 to pocket@homemail.com on Fri Apr 4 15:50:01 2025
    On Apr 04, 2025, pocket@homemail.com wrote:


    Sent: Friday, April 04, 2025 at 6:10 AM
    From: "Dan Purgert" <dan@djph.net>
    To: debian-user@lists.debian.org
    Subject: Re: DHCP and static addresses, nothing to do with Re: Who:Bookwormv.Trixie

    On Apr 03, 2025, Greg wrote:
    On 2025-04-03, Dan Purgert <dan@djph.net> wrote:

    That's what you want: as the address is in the 127.0.0.0 network,
    pinging it will ping itself, and it gets a reply. It doesn't
    require your LAN to be set up, and AIUI it's like localhost
    (127.0.0.1) in that it doesn't touch the network hardware.

    Indeed, the entirety of 127.0.0.0/8 is the virtual loopback adapter (i.e. "localhost").

    Doubtless yet another fallacious notion, but I thought IPV6 opened up
    the flood gates of assigning "real" ip addresses to whatever the heck Gene's talking about.

    Maybe? I honestly lost the plot to what he's trying to accomplish.

    Everything will still have a "localhost" entry (albeit "::1" instead of
    16 million valid options under 127.0.0.0/8), but yes, everything can
    also have publicly routable addresses as well.

    ?

    cat /etc/hosts
    # Static table lookup for hostnames.
    # See hosts(5) for details.

    I have no need for a hosts file

    Congrats? What point are you trying to make?

    --
    |_|O|_|
    |_|_|O| Github: https://github.com/dpurgert
    |O|O|O| PGP: DDAB 23FB 19FA 7D85 1CC1 E067 6D65 70E5 4CE7 2860

    -----BEGIN PGP SIGNATURE-----

    iQIzBAEBCgAdFiEE3asj+xn6fYUcweBnbWVw5UznKGAFAmfv4y0ACgkQbWVw5Uzn KGC2WA/+I/22AjxrBI2Woiq5kr0qhLX5pi+8uLC53o8eHebV5E9C35IoKN/52act 1LGUM0XItWW7HgDzYT8ne2YGkwJvsBvNwMKopqge3nQuEUPb5UXVYlZgJSiB51oS vBW5XTTlgWokl3FBGMcffyzqLdCH82SzxGn+JK5glaqrcby6Ci4epRMmGBm7pKfd iuMPVwaS0i722QmZVXumTE+qVXoI7a4sK6ZyxU0rJXN0wwoBp9ssm7oZfA8tA/Sc tc9Ob8fkbgwro41sduheclzmXqWqcMvM4+EXk3i8BDe2MwnVMkjOgNBryyQuy2lo Tl1W/V+8tfxyFUNG+4EUl+RdIFUz46sOX2/TMHllUR3wmK9Pa3a2EneLuxwDUI26 KkDw81g6z3QiKApJrES9MWh+g3xntBl/MWY/oA3oDSUZHI3js/g7kU5SNBtoEyZH AZVdXPTDL2nv2yn0o4ZVwq2PB9lFwCYYOXEl1LLuMFHy5thdnwcjAHcxxvZb+Ie5 WO5wiKzXTYViuseXnObzCk07DVI/q7kjLzi/jvl4xPiQiqb2mnNzo69Q06KRlbRg +N3uT6E7xvdGu991JkQLQmV47ltiwJWACO+Mg2Bk4wBNIguK/kaUZlH18DMopUxd cgVLQLKw3SjULqVdmtYW22sFDA6wq3h/EjxUUdl7FpwGv7LH0tY=
    =lfBO
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Us
  • From Michael Stone@21:1/5 to David Wright on Tue Apr 8 19:10:01 2025
    On Mon, Apr 07, 2025 at 10:28:12PM -0500, David Wright wrote:
    On Thu 03 Apr 2025 at 06:55:10 (-0400), Greg Wooledge wrote:
    I disagree with you here. The 127.0.1.1 address is a placeholder put
    there by the installer for the more common case where a machine doesn't
    have a fixed LAN IP address. Most home or workplace computers these
    days will get their addresses from DHCP without a reservation, so their
    internal addresses may vary.

    And that means that two machines can't find each other unless the DHCP
    server is also a DNS server. Or you set up and run your own.

    Or you use mdns, which is the standard way of dealing with dynamic
    resources on an unmanaged network. (That doesn't mean you have to use
    mdns, it just means that if you instead decide to do something like copy
    hosts files around the network you're choosing to make up your own
    solution to the inherent problems that led to dns in the first place.)

    But one disadvantage of your preferred approach is that the hostname
    and domain won't resolve unless the network is up.

    Nope, the stuff in /etc/hosts will resolve regardless of the state of
    the network. You won't be able to connect to the address associated with
    the local hostname until that address is configured on the host. For
    various reasons I'd much rather configure a static IP in this situation
    than set up a reservation on the dhcp server. Among other things, in a
    small network the bespoke dhcp configuration is likely going to cause
    pain that can't possibly outweigh the need to reconfigure a static IP if
    for some strange reason it needs to change. And a static IP is always
    going to be there (eliminating the issue of the hostname resolving to an unreachable IP). If I were using any sort of dhcp, including with a
    static reservation, I'd probably use 127.0.1.1 for the local hostname
    rather than any non-local IP. Mostly, to me, this falls into a weird
    place in wanting to use a complex solution (static dhcp reservations)
    without taking the relatively small additional step of just providing
    dns. Either go all the way and provide all the normal facilities (which
    these days are often baked into the router) instead of a mash-up, or go
    the easy route and use dynamic dhcp and mdns.

    I don't know
    whether that's why Gene installs/ed libnss-myhostname: I find the >documentation rather heavy going, and would have to experiment with
    it a bit to make sense of it. I also don't know whether it would be
    at all relevant to explaining Gene's following statement:

    ✄✄
    $ grep hosts: /etc/nsswitch.conf
    hosts: files mdns4_minimal [NOTFOUND=return] dns
    because files doesn't work in bookworm, I had to:

    grep hosts: /etc/nsswitch.conf
    hosts: files mdns4_minimal [NOTFOUND=return] dns myhostname
    to make the hosts file work
    ✄✄

    It's not productive to try to guess what his problem is. As a general
    matter /etc/hosts works fine on bookworm, as anyone can easily verify.
    There's also no reason why adding anything to the end of a line would
    change the use of files at all, because the modules are tried in order.
    There's probably something wrong with the hosts file, but there's no
    reliable data so the problem could be almost anything. It doesn't help
    that he's gotten bogus advice about changing the local hostname to
    resolve to 127.0.1.1, setting off another wild goose chase. I'd
    personally debug by looking really closely at the hosts file to try to
    see the bogus element. Assuming I can't see the issue I'd get rid of mdns4
    and myhostname in nsswitch.conf (to simplify) and 'getent hosts somenameinthefile' to confirm that works, then try a couple of different entries to identify any differences (e.g., both the fqdn and the bare hostname). Until there's a better understanding of what the actual
    problem is, there's no point in leaping to solutions.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dan Purgert@21:1/5 to David Wright on Fri Apr 11 11:50:01 2025
    On Apr 10, 2025, David Wright wrote:
    On Thu 03 Apr 2025 at 06:55:10 (-0400), Greg Wooledge wrote:
    Or you use mdns, which is the standard way of dealing with dynamic resources on an unmanaged network.

    The resources stay fixed during their lifetime, and any changes that
    occur are at a glacial pace. The network is managed, by me.

    I also don't like the names that mDNS comes up with.

    It should just be 'hostname.local'. But yeah, if the host defaults to a
    weirdo name (like my printer's default of BCP[SERIALNO]), they do tend
    to get a bit unwieldy.


    (That doesn't mean you have to use
    mdns, it just means that if you instead decide to do something like
    copy hosts files around the network you're choosing to make up your
    own solution to the inherent problems that led to dns in the first
    place.)

    I can hardly take credit for inventing /etc/hosts. It's simple to set
    up, and it causes no problems here. I don't think DNS was invented for resolving two dozen non-hierachical names on one site.

    That's exactly what DNS was invented for. Manually managing host files
    is a pain after only a few hosts. Add one machine, and you have to
    update 5,10,20,[...] host files.

    Yes, "Domain Names" do include hierarchy (e.g. "company.tld"); but
    that's more an artifact that when RFC 1035 was written, we were already
    seeing convergence of names for common services (mail, telnet, ftp,
    etc.).

    For various reasons I'd much rather configure a static IP in this
    situation than set up a reservation on the dhcp server. Among other
    things, in a small network the bespoke dhcp configuration is likely
    going to cause pain that can't possibly outweigh the need to
    reconfigure a static IP if for some strange reason it needs to change.

    I don't know how to configure static IPs without a DHCP server when
    there are devices that can only configure themselves by DHCP (or
    maybe mDNS, I haven't tried). But what are the pain and the strange
    reason?

    Correct -- if a device is stupidly-configured from the factory to
    REQUIRE DHCP, then you need to use DHCP.

    mDNS is just a simplified name resolution tool. It doesn't do host configuration for network/netmask/gateway.

    Mostly,
    to me, this falls into a weird place in wanting to use a complex
    solution (static dhcp reservations) without taking the relatively
    small additional step of just providing dns. Either go all the way
    and provide all the normal facilities (which these days are often
    baked into the router) instead of a mash-up, or go the easy route
    and use dynamic dhcp and mdns.

    Apart from configuring DNS, I don't want to have to run a dedicated
    server 24/7. And none of the 24/7 routers has had DNS capability.
    OTOH they've all had very simple interfaces for setting up static
    DHCP reservations.

    Sounds like getting a better router would be a good idea (I mean, when
    the current one starts acting wonky). There are (or were) a handful of
    options that could manage to update the DNS resolver when new DHCP Hosts
    were added to the network (and, likewise, static entries for non-DHCP
    hosts).

    Granted, these days, they may need *wrt or tomato firmwares, because the
    good features always seem to be the ones that go away. :(

    --
    |_|O|_|
    |_|_|O| Github: https://github.com/dpurgert
    |O|O|O| PGP: DDAB 23FB 19FA 7D85 1CC1 E067 6D65 70E5 4CE7 2860

    -----BEGIN PGP SIGNATURE-----

    iQIzBAEBCgAdFiEE3asj+xn6fYUcweBnbWVw5UznKGAFAmf45MgACgkQbWVw5Uzn KGCJkA/9GLfjvRMq1KzvaTQ5ftVSxWTR1qIjlYSKoR4o8nXRG+gKSbRjKDMnlLjB 3x5AobdPgrTfDt54Uw6+WOQ587jb4k6zyXBDQ2QEcDnbBYJ3LKtfhjoks2svoWyl 1YgdL19WXCpemkwKgCrFAkAY1vW1wDA1KX7/hFv4muiBD9CVQWEFMNN4/scGd2Ve gaDgXxxz7uMflLEdPezGu3DgrWHI7TclChBtpQ8dl6lSJ8xOF6SUKjoHGbFI91D8 XLdzqISBvz/cUBWtTtq1khor0lQbgJFQPtPNfLwyDrRDYdZ7B43N8pCk6vXBXXdj awRXFZlkLFVgUhTLT5V9sNk+R+kvCdHWzs5SJksSNcGrpakIan3lmPdyUk76tnWY k1RVf+hmu7VWgnwVmohYUo2gQGlJEnDNmvoedVUL6Ht3WNnYbEaKyMIzXtVppWjj 5fB6sOtyAsEHcQ9yqeIywhdbIe3B3pJgEfZVqjb7WeBJRO8xCBQDY37pf69VSFAY sRBJAVmUMCQUm0u4wws/lvQEqz3uBpfIg3PEaUp0LDBx6XvTuJmlh+gDqMVmjAbf 9qtOFePdM/lMF+WaeVAB6g56q8E2cgy9Vb1xQMWmmwzr1n7tcSnJJvq5jNNP5+X1 KNnMknsQWKoAblwGGRmnl08n48QqvF1dYYpPrE3X+ESvMj9wmcQ=
    =kTnL
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Us
  • From Dan Purgert@21:1/5 to David Wright on Sat Apr 12 19:10:01 2025
    On Apr 11, 2025, David Wright wrote:
    On Fri 11 Apr 2025 at 05:45:47 (-0400), Dan Purgert wrote:
    (That doesn't mean you have to use
    mdns, it just means that if you instead decide to do something like copy hosts files around the network you're choosing to make up your
    own solution to the inherent problems that led to dns in the first place.)

    I can hardly take credit for inventing /etc/hosts. It's simple to set
    up, and it causes no problems here. I don't think DNS was invented for resolving two dozen non-hierachical names on one site.

    That's exactly what DNS was invented for. Manually managing host files
    is a pain after only a few hosts. Add one machine, and you have to
    update 5,10,20,[...] host files.

    So the last change I made was mid-November, for adding a new laptop.
    I only change the DHCP when all my hosts are running. I login to
    the router, add the reservation, and remove anything that has died
    since the previous change, which was, as it happens, when I installed
    my latest router in December 2023. I update the master file with the
    same changes. I then run a script that transfers the master file
    to the half-dozen hosts, edits the hosts own line to 127.0.1.1, and
    prints a diff of the old and new versions. Finally a second script
    does the same thing, except it overwrites all the old hosts files.

    You've proven my point here. Managing the files got "annoying" enough
    that you scripted it.

    Yes, "Domain Names" do include hierarchy (e.g. "company.tld"); but
    that's more an artifact that when RFC 1035 was written, we were already seeing convergence of names for common services (mail, telnet, ftp,
    etc.).

    Sure, but not at this site", unless you count my adding a .corp TLD
    to all my hostnames in 2018. (I think at the time that was to quieten
    exim, but smarthosts may also appreciate it.)

    A proper "fully qualified domain name" by definition is
    "host.domain.tld". Just because you may or may not follow that in your
    local network is somewhat irrelevant -- it's somewhat akin to arguing
    that because your home network uses 192.168.0.0/24, that *all*
    residential networks use that address range.



    For various reasons I'd much rather configure a static IP in this situation than set up a reservation on the dhcp server. Among other things, in a small network the bespoke dhcp configuration is likely going to cause pain that can't possibly outweigh the need to reconfigure a static IP if for some strange reason it needs to change.

    I don't know how to configure static IPs without a DHCP server when
    there are devices that can only configure themselves by DHCP (or
    maybe mDNS, I haven't tried). But what are the pain and the strange reason?

    Correct -- if a device is stupidly-configured from the factory to
    REQUIRE DHCP, then you need to use DHCP.

    Welcome to the world of consumer electronics. Their /functionality/
    is certainly not stupid.

    I don't think you understood what I said. The "stupid-config" refers to
    the factory deciding that the only way your device can be setup to talk
    to the network is DHCP, and simply preventing any other method of configuration.

    It was not a comment directed at any "functionality" of those devices
    after they've been connected to your network.



    mDNS is just a simplified name resolution tool. It doesn't do host configuration for network/netmask/gateway.

    No, I think it's designed just for a single network. As I said above,
    I've found it useful for driverless printing, but nothing else.

    Yes, that would be "simplified" name resolution.


    Sounds like getting a better router would be a good idea (I mean, when
    the current one starts acting wonky). There are (or were) a handful of options that could manage to update the DNS resolver when new DHCP Hosts were added to the network (and, likewise, static entries for non-DHCP hosts).

    Granted, these days, they may need *wrt or tomato firmwares, because the good features always seem to be the ones that go away. :(

    My first router bought over here is now about 12 years old, cost $86
    at Radio Shack (R.I.P), has lost its WAN port and one LAN port over
    the years, but is still working. It's replacement cost $38 at Walmart
    and is also still at work. The third one, which hosts the DHCP server,
    cost all of $14 at Staples (clearance). So I've got great coverage
    with 3 APs, and one device could die with limited degradation, so
    I can't say I'm in the market for yet another, and I've see no need
    for a DNS server here.

    Did you miss the "when your current router starts acting up" part of my statement?

    --
    |_|O|_|
    |_|_|O| Github: https://github.com/dpurgert
    |O|O|O| PGP: DDAB 23FB 19FA 7D85 1CC1 E067 6D65 70E5 4CE7 2860

    -----BEGIN PGP SIGNATURE-----

    iQIzBAEBCgAdFiEE3asj+xn6fYUcweBnbWVw5UznKGAFAmf6nkcACgkQbWVw5Uzn KGDr2Q/8DuUgEe/ci5BxgYmq9hTjjgU0XP2o8vyT+2f1/gYGSVxLQS6nXsen79SF M7vbfLs107n1L8VbJ5XQBW6t01MEVigdFsYufXiQTE6REIiVXunBDBHuulwe5yN8 7i992bFUftrUdw8hT6Mix0smyqkiZC6Y1RZ8LoUjeU3BbYpqVp4XGuwZX2pLPl3X ad2SJMAh4bM3RCqzTuACurBXKsx/eiepRuTST+hI0VT0sdi4ws8U5l6etL2g2kx4 /HF+BxDo/H3RnfJtCT5+kQtr0CqKKHhdvMvHiEw3P68+/ivYlvSKXe3NzEyKChGk UEuZm+Xs+J/AMEkL7VdD2h8TGHNEHj+SxSDjdzInkfd8JOqb7YYolrdo6AK4IO64 BQIJjdJ0UK4LL+sZAhJULi4hkvjZeL183sJtuGSIYLn94HcBHa3V0W+HjRSC1iT2 ciC9bAMML/t89lMVBZaIXUSGMmG9J32hWq3ttJsmcjgVrwTqmfqclkHbfoxUoMT7 mdzN0xpPQ2cfkyKC8oi6oT/7UKs8daFTDjAgveCUOcu1FgrW25inyzAEMRBOSFwG f/qI24GJ7Ebc2JSq703ZIdWD09m9XoI4W3Zc+2Q1T+KCHNIFMsc/gHGGF4qS+jzr oULe1IUiI/FaQztfYhm+FRrObuwN6cnRhbf060MGzdeSQCRJKSQ=
    =/n9r
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Us