Re: Strip domain name from hostnames in output

2024-09-16 Thread Urs Thuermann
Michael Stone writes: > On Mon, Sep 16, 2024 at 11:18:19AM +0200, Steve Keller wrote: > >Is there a config option in libc, the host name resolver or somewhere > >else to show hostnames in my own domain without the full domain name? > > no You could at least achieve tha

Re: Strip domain name from hostnames in output

2024-09-16 Thread Michael Stone
On Mon, Sep 16, 2024 at 11:18:19AM +0200, Steve Keller wrote: Is there a config option in libc, the host name resolver or somewhere else to show hostnames in my own domain without the full domain name? no

Strip domain name from hostnames in output

2024-09-16 Thread Steve Keller
Is there a config option in libc, the host name resolver or somewhere else to show hostnames in my own domain without the full domain name? E.g. when I have the domain "my.domain" I want that string to stripped off from all hostnames shown. Usually, tools always show the FQDN: f

Re: Changing host name and domain name on Debian;was:Domainnametouse on home networks

2023-11-01 Thread Jeffrey Walton
On Wed, Nov 1, 2023 at 8:35 PM Greg Wooledge wrote: > > On Wed, Nov 01, 2023 at 08:18:45PM -0400, gene heskett wrote: > > On 11/1/23 19:30, Greg Wooledge wrote: > > > The problem is, you haven't yet told us *whose* bugzilla-based bug > > > tracking system you're talking about. That makes it hard

Re: Changing host name and domain name on Debian;was:Domainnametouse on home networks

2023-11-01 Thread Greg Wooledge
On Wed, Nov 01, 2023 at 08:18:45PM -0400, gene heskett wrote: > On 11/1/23 19:30, Greg Wooledge wrote: > > The problem is, you haven't yet told us *whose* bugzilla-based bug > > tracking system you're talking about. That makes it hard for anyone > > to offer assistance. > > > I wasn't aware there

Re: Changing host name and domain name on Debian;was:Domainnametouse on home networks

2023-11-01 Thread gene heskett
On 11/1/23 19:30, Greg Wooledge wrote: On Wed, Nov 01, 2023 at 07:20:27PM -0400, gene heskett wrote: On 11/1/23 17:08, Felix Miata wrote: gene heskett composed on 2023-10-31 10:26 (UTC-0400): I've requested pw resets, never got them, presumable because it sends the reset link to a 20 yo addre

Re: Changing host name and domain name on Debian; was:Domainnametouse on home networks

2023-11-01 Thread John Hasler
Gene writes: > That is informative, thanks Felix, but what is wrong with publishing > the correct address? Correct address for what? You don't want bugzilla.org: that's the home page for the Bugzilla bug tracking program which whoever you are trying to contact uses. -- John Hasler j...@sugarbit

Re: Changing host name and domain name on Debian; was:Domainnametouse on home networks

2023-11-01 Thread Greg Wooledge
On Wed, Nov 01, 2023 at 07:20:27PM -0400, gene heskett wrote: > On 11/1/23 17:08, Felix Miata wrote: > > gene heskett composed on 2023-10-31 10:26 (UTC-0400): > > > > > I've requested pw resets, never got them, presumable because it sends > > > the reset link to a 20 yo address. If you know someon

Re: Changing host name and domain name on Debian; was:Domainnametouse on home networks

2023-11-01 Thread gene heskett
On 11/1/23 17:08, Felix Miata wrote: gene heskett composed on 2023-10-31 10:26 (UTC-0400): I've requested pw resets, never got them, presumable because it sends the reset link to a 20 yo address. If you know someone who has admin rights and could fix it, put it to me. Mail sent to ad...@bugzill

Re: Changing host name and domain name on Debian; was: Domainnametouse on home networks

2023-11-01 Thread Felix Miata
gene heskett composed on 2023-10-31 10:26 (UTC-0400): > I've requested pw resets, never got them, presumable because it sends > the reset link to a 20 yo address. If you know someone who has admin > rights and could fix it, put it to me. Mail sent to ad...@bugzilla.com > bounces. Bugzilla.com

Re: Changing host name and domain name on Debian; was: Domainnametouse on home networks

2023-10-31 Thread John Hasler
Gene writes: > But bugzilla knows me by name and I am not me when coming from a new > ISP. So use a different name. > Mail sent to ad...@bugzilla.com bounces. bugzilla.com is a site about customized Volkswagen beetles. -- John Hasler j...@sugarbit.com Elmwood, WI USA

Re: Changing host name and domain name on Debian; was: Domain nametouseon home networks

2023-10-31 Thread gene heskett
On 10/31/23 05:12, The Wanderer wrote: On 2023-10-30 at 23:11, Max Nikulin wrote: On 30/10/2023 00:00, gene heskett wrote: Somebody who /can/ report it. I changed ISP's over a decade back, so I am not me to bugzilla, and because I am known also by name, I can't re-register. I can't even get a

Re: Changing host name and domain name on Debian; was: Domainnametouse on home networks

2023-10-31 Thread gene heskett
On 10/30/23 23:12, Max Nikulin wrote: On 30/10/2023 00:00, gene heskett wrote: Somebody who /can/ report it. I changed ISP's over a decade back, so I am not me to bugzilla, and because I am known also by name, I can't re-register. I can't even get a pw reset cuz it (I'm guessing here) is sendi

Re: Domain name to use on home networks

2023-10-31 Thread gene heskett
On 10/30/23 21:32, Charles Curley wrote: On Mon, 30 Oct 2023 14:43:43 -0400 Greg Wooledge wrote: …but for Gene's systems I would recommend traditional Debian ifupdown (/etc/network/interfaces). It's by far the simplest, and the most widely supported among the community, in case he has questio

Re: Changing host name and domain name on Debian; was: Domain nametouse on home networks

2023-10-31 Thread The Wanderer
On 2023-10-30 at 23:11, Max Nikulin wrote: > On 30/10/2023 00:00, gene heskett wrote: > >> Somebody who /can/ report it. I changed ISP's over a decade back, >> so I am not me to bugzilla, and because I am known also by name, I >> can't re-register. I can't even get a pw reset cuz it (I'm guessing

Re: Changing host name and domain name on Debian; was: Domain nametouse on home networks

2023-10-30 Thread Max Nikulin
On 30/10/2023 00:00, gene heskett wrote: Somebody who /can/ report it. I changed ISP's over a decade back, so I am not me to bugzilla, and because I am known also by name, I can't re-register. I can't even get a pw reset cuz it (I'm guessing here) is sending it to my earlier ISP's Sorry, it i

Re: Domain name to use on home networks

2023-10-30 Thread Max Nikulin
On 31/10/2023 01:43, Greg Wooledge wrote: for Gene's systems I would recommend traditional Debian ifupdown (/etc/network/interfaces). It's by far the simplest, and the most widely supported among the community, in case he has questions. Notice that in the default configuration NetworkManager r

Re: Domain name to use on home networks

2023-10-30 Thread Max Nikulin
On 30/10/2023 23:09, gene heskett wrote: Making resolv.conf immutable seems to be the way to permanently insulate me from NM's broken idea of whats right. Gene, from what you have written in this thread I see nothing wrong in behavior of NetworkManager. Certainly it is easier to continue barki

Re: Domain name to use on home networks

2023-10-30 Thread Charles Curley
On Mon, 30 Oct 2023 14:43:43 -0400 Greg Wooledge wrote: > …but for Gene's systems I would recommend > traditional Debian ifupdown (/etc/network/interfaces). It's by far > the simplest, and the most widely supported among the community, in > case he has questions. It has the further advantage th

Re: Domain name to use on home networks

2023-10-30 Thread gene heskett
On 10/30/23 14:44, Greg Wooledge wrote: On Mon, Oct 30, 2023 at 06:37:48PM +, Andrew M.A. Cater wrote: On Mon, Oct 30, 2023 at 02:29:37PM -0400, gene heskett wrote: On 10/30/23 13:40, John Hasler wrote: I wrote: Why do you have NetworkManager installed at all? Gene writes: Std image dd

Re: Domain name to use on home networks

2023-10-30 Thread Pocket
On 10/30/23 14:43, Greg Wooledge wrote: On Mon, Oct 30, 2023 at 06:37:48PM +, Andrew M.A. Cater wrote: On Mon, Oct 30, 2023 at 02:29:37PM -0400, gene heskett wrote: On 10/30/23 13:40, John Hasler wrote: I wrote: Why do you have NetworkManager installed at all? Gene writes: Std image d

Re: Domain name to use on home networks

2023-10-30 Thread gene heskett
On 10/30/23 14:30, gene heskett wrote: On 10/30/23 13:40, John Hasler wrote: I wrote: Why do you have NetworkManager installed at all? Gene writes: Std image dd'd to u-sd card install on the arm64 stuff, can't get away from it. Why won't "sudo apt remove --purge network-manager" work for y

Re: Domain name to use on home networks

2023-10-30 Thread Greg Wooledge
On Mon, Oct 30, 2023 at 06:37:48PM +, Andrew M.A. Cater wrote: > On Mon, Oct 30, 2023 at 02:29:37PM -0400, gene heskett wrote: > > On 10/30/23 13:40, John Hasler wrote: > > > I wrote: > > > > Why do you have NetworkManager installed at all? > > > > > > Gene writes: > > > > Std image dd'd to u-

Re: Domain name to use on home networks

2023-10-30 Thread Andrew M.A. Cater
On Mon, Oct 30, 2023 at 02:29:37PM -0400, gene heskett wrote: > On 10/30/23 13:40, John Hasler wrote: > > I wrote: > > > Why do you have NetworkManager installed at all? > > > > Gene writes: > > > Std image dd'd to u-sd card install on the arm64 stuff, can't get away > > > from it. > > > > Why wo

Re: Domain name to use on home networks

2023-10-30 Thread gene heskett
On 10/30/23 13:40, John Hasler wrote: I wrote: Why do you have NetworkManager installed at all? Gene writes: Std image dd'd to u-sd card install on the arm64 stuff, can't get away from it. Why won't "sudo apt remove --purge network-manager" work for you? It did, but took the network down to

Re: Domain name to use on home networks

2023-10-30 Thread John Hasler
I wrote: > Why do you have NetworkManager installed at all? Gene writes: > Std image dd'd to u-sd card install on the arm64 stuff, can't get away > from it. Why won't "sudo apt remove --purge network-manager" work for you? -- John Hasler j...@sugarbit.com Elmwood, WI USA

Re: Domain name to use on home networks

2023-10-30 Thread Pocket
On 10/30/23 13:29, gene heskett wrote: On 10/30/23 12:48, Pocket wrote: On 10/30/23 12:43, gene heskett wrote: On 10/30/23 12:16, John Hasler wrote: Why do you have NetworkManager installed at all? Std image dd'd to u-sd card install on the arm64 stuff, can't get away from it. You can only

Re: Domain name to use on home networks

2023-10-30 Thread gene heskett
On 10/30/23 13:29, Pocket wrote: On 10/30/23 13:21, Pocket wrote: apt purge network-manager This is what I get running the above sudo apt purge network-manager Reading package lists... Done Building dependency tree... Done Reading state information... Done The following packages were automat

Re: Domain name to use on home networks

2023-10-30 Thread gene heskett
On 10/30/23 13:21, Pocket wrote: On 10/30/23 13:09, gene heskett wrote: On 10/30/23 12:40, Pocket wrote: On 10/30/23 12:15, John Hasler wrote: Why do you have NetworkManager installed at all? That is an interesting question for Gene. apt purge --autoremove network-manager will fix that.

Re: Domain name to use on home networks

2023-10-30 Thread gene heskett
On 10/30/23 12:48, Pocket wrote: On 10/30/23 12:43, gene heskett wrote: On 10/30/23 12:16, John Hasler wrote: Why do you have NetworkManager installed at all? Std image dd'd to u-sd card install on the arm64 stuff, can't get away from it. You can only make it somewhere near right and sudo cha

Re: Domain name to use on home networks

2023-10-30 Thread Pocket
On 10/30/23 13:21, Pocket wrote: apt purge network-manager This is what I get running the above sudo apt purge network-manager Reading package lists... Done Building dependency tree... Done Reading state information... Done The following packages were automatically installed and are no longe

Re: Domain name to use on home networks

2023-10-30 Thread Pocket
On 10/30/23 13:09, gene heskett wrote: On 10/30/23 12:40, Pocket wrote: On 10/30/23 12:15, John Hasler wrote: Why do you have NetworkManager installed at all? That is an interesting question for Gene. apt purge --autoremove network-manager will fix that. I can do that?  The last 3 or 4 t

Re: Domain name to use on home networks

2023-10-30 Thread gene heskett
On 10/30/23 12:40, Pocket wrote: On 10/30/23 12:15, John Hasler wrote: Why do you have NetworkManager installed at all? That is an interesting question for Gene. apt purge --autoremove network-manager will fix that. I can do that? The last 3 or 4 times I tried that, dependencies took the

Re: Domain name to use on home networks

2023-10-30 Thread Pocket
On 10/30/23 12:43, gene heskett wrote: On 10/30/23 12:16, John Hasler wrote: Why do you have NetworkManager installed at all? Std image dd'd to u-sd card install on the arm64 stuff, can't get away from it. You can only make it somewhere near right and sudo chattr +i the files before networkm

Re: Domain name to use on home networks

2023-10-30 Thread gene heskett
On 10/30/23 12:16, John Hasler wrote: Why do you have NetworkManager installed at all? Std image dd'd to u-sd card install on the arm64 stuff, can't get away from it. You can only make it somewhere near right and sudo chattr +i the files before networkmangler discovers you've fixed it. Cheers

Re: Domain name to use on home networks

2023-10-30 Thread Pocket
On 10/30/23 12:15, John Hasler wrote: Why do you have NetworkManager installed at all? That is an interesting question for Gene. apt purge --autoremove network-manager will fix that. I take a bit different opinion from Gene, instead of chattr +i /etc/resolv.conf I work to figure out how to

Re: Domain name to use on home networks

2023-10-30 Thread gene heskett
On 10/30/23 10:57, Max Nikulin wrote: On 29/10/2023 23:24, gene heskett wrote: finally solved by editing resolv.conf to put the nameserver address into it, followed by a chattr +i resolv.conf. I have no d clue where mangler I have realized that it is a nice stance taking into account that the

Re: Domain name to use on home networks

2023-10-30 Thread gene heskett
On 10/30/23 08:25, Greg Wooledge wrote: On Mon, Oct 30, 2023 at 08:19:24AM -0400, Pocket wrote: On 10/30/23 03:54, gene heskett wrote: [ipv4] address1=192.168.71.55/24,192.168.71.1 dns=192.168.71.1; dns-search=hosts;nameserver; ^ this is incorrect nmcli connection modif

Re: Domain name to use on home networks

2023-10-30 Thread John Hasler
Why do you have NetworkManager installed at all? -- John Hasler j...@sugarbit.com Elmwood, WI USA

Re: Domain name to use on home networks

2023-10-30 Thread gene heskett
On 10/30/23 08:20, Pocket wrote: On 10/30/23 03:54, gene heskett wrote: On 10/29/23 22:17, Max Nikulin wrote: On 30/10/2023 00:08, Pocket wrote: On 10/29/23 12:24, gene heskett wrote: I have also made a very painfull attempt to change my domainname from coyote.den to home.arpa, and finally r

Re: Domain name to use on home networks

2023-10-30 Thread gene heskett
On 10/30/23 05:15, Timothy M Butterworth wrote: On Mon, Oct 30, 2023 at 3:55 AM gene heskett > wrote: On 10/29/23 22:17, Max Nikulin wrote: > On 30/10/2023 00:08, Pocket wrote: >> On 10/29/23 12:24, gene heskett wrote: >>> I have also made a ver

Re: Domain name to use on home networks

2023-10-30 Thread Max Nikulin
On 29/10/2023 23:24, gene heskett wrote: finally solved by editing resolv.conf to put the nameserver address into it, followed by a chattr +i resolv.conf. I have no d clue where mangler I have realized that it is a nice stance taking into account that the topic of the original thread was confi

Re: Domain name to use on home networks

2023-10-30 Thread Pocket
On 10/30/23 08:24, Greg Wooledge wrote: On Mon, Oct 30, 2023 at 08:19:24AM -0400, Pocket wrote: On 10/30/23 03:54, gene heskett wrote: [ipv4] address1=192.168.71.55/24,192.168.71.1 dns=192.168.71.1; dns-search=hosts;nameserver; ^ this is incorrect nmcli connection modif

Re: Domain name to use on home networks

2023-10-30 Thread Greg Wooledge
On Mon, Oct 30, 2023 at 08:19:24AM -0400, Pocket wrote: > On 10/30/23 03:54, gene heskett wrote: > > [ipv4] > > address1=192.168.71.55/24,192.168.71.1 > > dns=192.168.71.1; > > dns-search=hosts;nameserver; > > > ^ > > this is incorrect > > nmcli connection modify Network_Int

Re: Domain name to use on home networks

2023-10-30 Thread Pocket
On 10/30/23 08:19, Pocket wrote: On 10/30/23 03:54, gene heskett wrote: On 10/29/23 22:17, Max Nikulin wrote: On 30/10/2023 00:08, Pocket wrote: On 10/29/23 12:24, gene heskett wrote: I have also made a very painfull attempt to change my domainname from coyote.den to home.arpa, and finally

Re: Domain name to use on home networks

2023-10-30 Thread Pocket
On 10/30/23 03:54, gene heskett wrote: On 10/29/23 22:17, Max Nikulin wrote: On 30/10/2023 00:08, Pocket wrote: On 10/29/23 12:24, gene heskett wrote: I have also made a very painfull attempt to change my domainname from coyote.den to home.arpa, and finally reverted that, Gene, have you po

Re: Domain name to use on home networks

2023-10-30 Thread Timothy M Butterworth
On Mon, Oct 30, 2023 at 3:55 AM gene heskett wrote: > On 10/29/23 22:17, Max Nikulin wrote: > > On 30/10/2023 00:08, Pocket wrote: > >> On 10/29/23 12:24, gene heskett wrote: > >>> I have also made a very painfull attempt to change my domainname from > >>> coyote.den to home.arpa, and finally rev

Re: Domain name to use on home networks

2023-10-30 Thread gene heskett
On 10/29/23 22:17, Max Nikulin wrote: On 30/10/2023 00:08, Pocket wrote: On 10/29/23 12:24, gene heskett wrote: I have also made a very painfull attempt to change my domainname from coyote.den to home.arpa, and finally reverted that, Gene, have you posted what exactly you did to switch from c

Re: Domain name to use on home networks

2023-10-29 Thread Max Nikulin
On 30/10/2023 01:21, Jeffrey Walton wrote: Also see <https://systemd-devel.freedesktop.narkive.com/W2bL081i/how-do-you-set-the-machine-s-domain-name-with-systemd>, where the systemd folks said to modify the hostname by hand because hostnamectl butchered the fully qualified hostname.

Re: Domain name to use on home networks

2023-10-29 Thread Max Nikulin
On 30/10/2023 00:08, Pocket wrote: On 10/29/23 12:24, gene heskett wrote: I have also made a very painfull attempt to change my domainname from coyote.den to home.arpa, and finally reverted that, Gene, have you posted what exactly you did to switch from coyote.den to home.arpa? You have been

Re: Domain name to use on home networks

2023-10-29 Thread John Hasler
Gene writes: > possibly, its a Buffalo Netfinity with a now elderly dd-wrt reflash, > and whose pw I've long since forgot, and its 30 chars of random > gibberish IIRC. Write the password on the router. Write all your passwords down. -- John Hasler j...@sugarbit.com Elmwood, WI USA

Re: Domain name to use on home networks

2023-10-29 Thread Jeffrey Walton
rn:~$ hostname > > >>> unicorn > > >>> > > >>> then yeah, that's all you need. If you're using long-form hostnames > > >>> (with dots in them), then you also need to configure /etc/hostname. > > hostnamectl set-hostname is th

Re: Domain name to use on home networks

2023-10-29 Thread gene heskett
On 10/29/23 13:09, Pocket wrote: On 10/29/23 12:24, gene heskett wrote: On 10/29/23 10:23, David Wright wrote: On Fri 27 Oct 2023 at 11:13:59 (-0400), gene heskett wrote: You saw my hosts entry in the last post, but again 192.168.71.3    coyote.home.arpa    coyote but after a reboot, dom

Re: Domain name to use on home networks

2023-10-29 Thread Pocket
On 10/29/23 12:24, gene heskett wrote: On 10/29/23 10:23, David Wright wrote: On Fri 27 Oct 2023 at 11:13:59 (-0400), gene heskett wrote: You saw my hosts entry in the last post, but again 192.168.71.3    coyote.home.arpa    coyote but after a reboot, domainname returns none, and the /et

Re: Changing host name and domain name on Debian; was: Domain nametouse on home networks

2023-10-29 Thread gene heskett
On 10/29/23 12:10, Max Nikulin wrote: On 27/10/2023 23:03, gene heskett wrote: I suggest you file a bug against this command to among other things, clean up the language to refer to FQDN's or aliases which we are familiar with, "static, transient or pretty" as so called choices. If using new

Re: Domain name to use on home networks

2023-10-29 Thread gene heskett
On 10/29/23 10:23, David Wright wrote: On Fri 27 Oct 2023 at 11:13:59 (-0400), gene heskett wrote: You saw my hosts entry in the last post, but again 192.168.71.3coyote.home.arpacoyote but after a reboot, domainname returns none, and the /etc/domainname file has been deleted. As in

Re: Domain name to use on home networks

2023-10-29 Thread Max Nikulin
On 27/10/2023 21:19, Greg Wooledge wrote: More importantly, why on earth would this be recommended over editing the /etc/hostname file, which is *much* simpler, and which appears to be independent of the init system that's in use? hostnamectl tries to prevent split brain /etc/hostname vs. kern

Re: Changing host name and domain name on Debian; was: Domain nameto use on home networks

2023-10-29 Thread Max Nikulin
On 27/10/2023 23:03, gene heskett wrote: I suggest you file a bug against this command to among other things, clean up the language to refer to FQDN's or aliases which we are familiar with, "static, transient or pretty" as so called choices. If using new words for old, either define them so w

Re: Domain name to use on home networks

2023-10-29 Thread John Hasler
David Wright writes: > I'm just wondering where this file /etc/domainname came from in the > first place. I can't find it with apt-file (killing two birds): Gene created it, having been confused by the hostname man page. -- John Hasler j...@sugarbit.com Elmwood, WI USA

Re: Domain name to use on home networks

2023-10-29 Thread Greg Wooledge
On Sun, Oct 29, 2023 at 09:22:38AM -0500, David Wright wrote: > I'm just wondering where this file /etc/domainname came from in the > first place. I can't find it with apt-file (killing two birds): > > $ apt-file find etc/domain > $ I'm assuming either Gene created it himself, because he tho

Re: Domain name to use on home networks

2023-10-29 Thread David Wright
On Fri 27 Oct 2023 at 11:13:59 (-0400), gene heskett wrote: > You saw my hosts entry in the last post, but again > 192.168.71.3coyote.home.arpacoyote > but after a reboot, domainname returns none, and the /etc/domainname > file has been deleted. As in not visible to an ls of /etc. host

Re: Domain name to use on home networks

2023-10-27 Thread Max Nikulin
On 28/10/2023 05:48, Jeffrey Walton wrote: Yeah, just file a bug and let whomever else deal with it. Whatever text is proposed, it will be rejected in favor of what the person with check-in privileges wants. Or worse, the person with check-in privileges will torture the submitter with an endles

Re: Domain name to use on home networks

2023-10-27 Thread Jeffrey Walton
that's close to it. > > unicorn:/etc/init.d$ grep hostname * > unicorn:/etc/init.d$ > > Whatever's reading /etc/hostname comes from another location. That could be Systemd. They used to recommend changing /etc/hostname directly: <https://systemd-devel.freedesktop.narkive.com/W

Re: Domain name to use on home networks

2023-10-27 Thread Marco M.
Am 27.10.2023 um 12:09:23 Uhr schrieb gene heskett: > On 10/27/23 10:40, Marco M. wrote: > > Am 27.10.2023 um 10:37:12 Uhr schrieb gene heskett: > > > >> Its in there, for this machine, but on a reboot, the domainname > >> reverts to "none" Apparently I didn't use the approved systemd way > >>

Re: Domain name to use on home networks

2023-10-27 Thread The Wanderer
On 2023-10-27 at 14:57, John Hasler wrote: > I wrote: > Greg writes: >> My Debian 12 system does not have an /etc/init.d/hostname.sh file, >> or anything else that's close to it. > > My desktop, which has been upgraded many times, does have > /etc/init.d/hostname.sh. However, a recently instal

Re: Domain name to use on home networks

2023-10-27 Thread John Hasler
I wrote: > The NIS stuff should be evicted from the hostname man page. Greg writes: > Well... maybe? While the use of NIS hostname resolution is strongly > discouraged, it's not *forbidden*. A system admin might, in theory, > be using NIS to serve up hostname/IP mappings, in which case the NIS >

Re: Domain name to use on home networks

2023-10-27 Thread Greg Wooledge
On Fri, Oct 27, 2023 at 12:53:40PM -0500, John Hasler wrote: > The NIS stuff should be evicted from the hostname man page. Well... maybe? While the use of NIS hostname resolution is strongly discouraged, it's not *forbidden*. A system admin might, in theory, be using NIS to serve up hostname/IP

Re: Domain name to use on home networks

2023-10-27 Thread John Hasler
The NIS stuff should be evicted from the hostname man page. -- John Hasler j...@sugarbit.com Elmwood, WI USA

Re: Domain name to use on home networks

2023-10-27 Thread Greg Wooledge
On Fri, Oct 27, 2023 at 12:46:16PM -0400, gene heskett wrote: > So this is what I get now: > gene@coyote:/etc$ dnsdomainname > home.arpa > gene@coyote:/etc$ hostname > coyote.home.arpa > gene@coyote:/etc$ cat hostname > coyote > Is that correct and will it withstand a reboot? Your hostname will go

Re: Domain name to use on home networks

2023-10-27 Thread Greg Wooledge
n features is *severely* deprecated. Common advice is to use NIS only for users, groups, service names, and things associated with those. For hostname resolution, you should use DNS instead. In any case, both NIS and DNS have a "domain name", but they are different and it's impor

Re: Domain name to use on home networks

2023-10-27 Thread Michael Kjörling
On 27 Oct 2023 17:02 +, from 2695bd53d...@ewoof.net (Michael Kjörling): >> HOSTNAME(1) Linux Programmer's Manual HOSTNAME(1) >> >> NAME >>hostname - show or set the system's host name >>domainname - sho

Re: Domain name to use on home networks

2023-10-27 Thread Michael Kjörling
hich Erwan didn't quote does seem a bit more helpful, though. Quoting the entire NAME section: > HOSTNAME(1) Linux Programmer's Manual HOSTNAME(1) > > NAME >hostname - show or set the system's host name >domainname - show or set the sy

Re: Domain name to use on home networks

2023-10-27 Thread Erwan David
Le 27/10/2023 à 18:45, John Hasler a écrit : Erwan writes: Here are the first lines of 'man domainname" : That doesn't help very much with no hint as to what NIS is and that it isn't relevant to DNS. it is said later in the man Don't use the command domainname t

Re: Domain name to use on home networks

2023-10-27 Thread gene heskett
uld contain the word "coyote". Your /etc/hosts file contains the line posted above, which maps the hostname "coyote" to the fully qualified domain name "coyote.home.arpa". This means your DNS domain name is "home.arpa". If you run the "dnsdomainname" c

Re: Domain name to use on home networks

2023-10-27 Thread John Hasler
Erwan writes: > Here are the first lines of 'man domainname" : That doesn't help very much with no hint as to what NIS is and that it isn't relevant to DNS. -- John Hasler j...@sugarbit.com Elmwood, WI USA

Re: Domain name to use on home networks

2023-10-27 Thread Erwan David
ost name   domainname - show or set the system's NIS/YP domain name

Re: Domain name to use on home networks

2023-10-27 Thread gene heskett
On 10/27/23 11:45, Greg Wooledge wrote: On Fri, Oct 27, 2023 at 11:25:00AM -0400, gene heskett wrote: Not a systemd luver nor expert. Someone suggested that if I was using dotted names, then I should edit (as sudo) /etc/hostname which I have now done t add the FQDN name of coyote.home.arpa. Yo

Re: Domain name to use on home networks

2023-10-27 Thread gene heskett
c/hosts file contains the line posted above, which maps the hostname "coyote" to the fully qualified domain name "coyote.home.arpa". This means your DNS domain name is "home.arpa". If you run the "dnsdomainname" command, you should see "home.arpa" as ou

Re: Domain name to use on home networks

2023-10-27 Thread John Hasler
Gene writes: > Define NIS please. Network Information Service. You've never heard of it because it's obsolete. You should ignore it. -- John Hasler j...@sugarbit.com Elmwood, WI USA

Re: Domain name to use on home networks

2023-10-27 Thread gene heskett
On 10/27/23 10:49, Greg Wooledge wrote: On Fri, Oct 27, 2023 at 10:37:12AM -0400, gene heskett wrote: Its in there, for this machine, but on a reboot, the domainname reverts to "none" Apparently I didn't use the approved systemd way to change it. from a cat of /etc/hosts: 192.168.71.3coyote.

Re: Domain name to use on home networks

2023-10-27 Thread gene heskett
On 10/27/23 10:40, Marco M. wrote: Am 27.10.2023 um 10:37:12 Uhr schrieb gene heskett: Its in there, for this machine, but on a reboot, the domainname reverts to "none" Apparently I didn't use the approved systemd way to change it. from a cat of /etc/hosts: 192.168.71.3coyote.home.arpa

Re: Domain name to use on home networks

2023-10-27 Thread gene heskett
On 10/27/23 10:22, Greg Wooledge wrote: On Fri, Oct 27, 2023 at 02:00:21PM +, Andrew M.A. Cater wrote: On Oct 27, 2023, at 9:05 AM, Greg Wooledge wrote: If you're using short-form hostnames like this: unicorn:~$ hostname unicorn then yeah, [/etc/hosts is] all you need. If you're using l

Re: Changing host name and domain name on Debian; was: Domain nameto use on home networks

2023-10-27 Thread gene heskett
found out that is the proper what to set the host name since UNIX began. I believe what Gene refers to when saying "long form host name" is the fully qualified host name, which includes both the host name and the domain name within which the host name exists. An example of a fully qualifi

Re: Domain name to use on home networks

2023-10-27 Thread gene heskett
oyote:/etc$ Which is all correct. But dnsdomainname WILL return (none) after the next reboot. Why, what have I not dome correctly? Andy From the man page THE FQDN The FQDN (Fully Qualified Domain Name) of the system is the name that the *resolver <https://manpages.org/resolver/3>

Re: Domain name to use on home networks

2023-10-27 Thread Greg Wooledge
On Fri, Oct 27, 2023 at 11:25:00AM -0400, gene heskett wrote: > Not a systemd luver nor expert. Someone suggested that if I was using dotted > names, then I should edit (as sudo) /etc/hostname which I have now done t > add the FQDN name of coyote.home.arpa. You should undo that. There's no reason

Re: Domain name to use on home networks

2023-10-27 Thread Greg Wooledge
ostname is "coyote" -- i.e. if the "hostname" command gives you "coyote" as output -- then you're already finished. Debian reads /etc/hostname at boot time to set the hostname. This file (on this computer) should contain the word "coyote". Your /etc/h

Re: Domain name to use on home networks

2023-10-27 Thread gene heskett
corn:~$ cat /etc/hostname unicorn Couldn't be simpler, really. Are you referring to the domain name or FQDN? Not a systemd luver nor expert. Someone suggested that if I was using dotted names, then I should edit (as sudo) /etc/hostname which I have now done t add the FQDN name of coyote.home.arp

Re: Domain name to use on home networks

2023-10-27 Thread gene heskett
On 10/27/23 07:50, Greg Wooledge wrote: On Fri, Oct 27, 2023 at 07:29:20AM -0400, Pocket wrote: On 10/27/23 07:12, gene heskett wrote: I tried to change just this machine to see how its done, and managed to get all the right answers, which did not affect my local network since I generally use t

Re: Domain name to use on home networks

2023-10-27 Thread mick.crane
On 2023-10-26 09:16, Michael Kjörling wrote: On 25 Oct 2023 21:23 -0400, from monn...@iro.umontreal.ca (Stefan Monnier): If you go with the domain name home.arpa and an IPv4 subnet sliced out of one of 192.168.0.0/16, 172.12.0.0/12 or 10.0.0.0/8, you can be _almost certain_ that nothing will

Re: Domain name to use on home networks

2023-10-27 Thread Greg Wooledge
On Fri, Oct 27, 2023 at 10:37:12AM -0400, gene heskett wrote: > Its in there, for this machine, but on a reboot, the domainname reverts to > "none" Apparently I didn't use the approved systemd way to change it. > from a cat of /etc/hosts: > 192.168.71.3coyote.home.arpacoyote What comma

Re: Domain name to use on home networks

2023-10-27 Thread Marco M.
Am 27.10.2023 um 10:37:12 Uhr schrieb gene heskett: > Its in there, for this machine, but on a reboot, the domainname > reverts to "none" Apparently I didn't use the approved systemd way to > change it. from a cat of /etc/hosts: > 192.168.71.3coyote.home.arpacoyote That is only releva

Re: Domain name to use on home networks

2023-10-27 Thread gene heskett
On 10/27/23 07:29, Pocket wrote: On 10/27/23 07:12, gene heskett wrote: On 10/27/23 00:47, Stefan Monnier wrote: I would have thought that techies understand its origins, and non-techies are fairly unlikely ever to encounter it. That's the thing: if you use `home.arpa` for your home network,

Re: Domain name to use on home networks

2023-10-27 Thread David Wright
: if you use `home.arpa` for your home network, suddenly > > it's exposed to non-techies, like your friends and family, contrary to > > things like `in-addr.arpa`. You'll have to remind me where it is that your non-techie friends and family would see your domain name. As I start

Re: Domain name to use on home networks

2023-10-27 Thread Greg Wooledge
On Fri, Oct 27, 2023 at 02:00:21PM +, Andrew M.A. Cater wrote: > > > On Oct 27, 2023, at 9:05 AM, Greg Wooledge wrote: > > >>> If you're using short-form hostnames like this: > > >>> > > >>> unicorn:~$ hostname > > >>> unicorn > > >>> > > >>> then yeah, [/etc/hosts is] all you need. If you'

Re: Changing host name and domain name on Debian; was: Domain name to use on home networks

2023-10-27 Thread Michael Kjörling
I found out that is the > proper what to set the host name since UNIX began. I believe what Gene refers to when saying "long form host name" is the fully qualified host name, which includes both the host name and the domain name within which the host name exists. An example of a ful

Re: Domain name to use on home networks

2023-10-27 Thread Pocket
hostname is the command to do it - and will survive a reboot.AndyFrom the man pageTHE FQDNThe FQDN (Fully Qualified Domain Name) of the system is the name that the resolver(3) returns for the host name, such as, ursula.example.com. It is usually the hostname followed by the DNS domain name (the part

Re: Domain name to use on home networks

2023-10-27 Thread Andrew M.A. Cater
On Fri, Oct 27, 2023 at 09:30:09AM -0400, Pocket wrote: > > > Sent from my iPad > > > On Oct 27, 2023, at 9:05 AM, Greg Wooledge wrote: > > > > On Fri, Oct 27, 2023 at 07:59:00AM -0400, Pocket wrote: > >>> On 10/27/23 07:50, Greg Wooledge wrote: > >>> On Fri, Oct 27, 2023 at 07:29:20AM -0400,

Re: Domain name to use on home networks

2023-10-27 Thread Pocket
gure /etc/hostname. >>> >>> I use the short-form hostnames, so mine is simply: >>> >>> unicorn:~$ cat /etc/hostname >>> unicorn >>> >>> Couldn't be simpler, really. >> >> Are you referring to the domain name or FQD

Re: Domain name to use on home networks

2023-10-27 Thread Greg Wooledge
$ cat /etc/hostname > > unicorn > > > > Couldn't be simpler, really. > > Are you referring to the domain name or FQDN? Neither. I'm referring to the hostname, as printed by the hostname(1) command. There are two philosophies for how to set your hostname. You can

Re: Domain name to use on home networks

2023-10-27 Thread Pocket
uldn't be simpler, really. Are you referring to the domain name or FQDN? -- It's not easy to be me

  1   2   3   4   5   >