[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: hostname?

On 10/4/19 1:36 PM, Dan Ritter wrote:

> Please show us:
> /etc/hostname

root@pix:~# cat /etc/hostname

> /etc/hosts

root@pix:~# cat /etc/hosts
# /etc/hosts:  This file describes a number of hostname-to-address
# Host Database
# localhost is used to configure the loopback interface
# sudo cp hosts /etc ; dist `pwd`/hosts /etc all hosts
# The following lines are desirable for IPv6 capable hosts
# when the system is booting.  Do not change this entry.
::1 		ip6-localhost 			ip6-loopback
fe00::0		ip6-localnet
ff00::0 	ip6-mcastprefix
ff02::1 	ip6-allnodes
ff02::2 	ip6-allrouters
ff02::3 	ip6-allhosts	localhost.localdomain		localhost lh lcl

# misc ne'r-do-wells       ad.doubleclick.net       mmv.admob.com

# Pasadena	rrserv.richeyrentals.com	rrserv rrrc rrc

# an indra IP (net.indra.com)	net.indra.com			indra nic

# a FRII IP	www.frii.net			frii

# Debian mirrors	mirror.picosecond.org		mpo pico	punk.uchicago.edu	mirrors.ocf.berkeley.edu	ftp.us.debian.org	security.debian.org

# RPi mirrors	raspbian.raspberrypi.org	mirrors.ocf.berkeley.edu

# DHCP range -- no longer operative
# ||||||||||||

# /30 IPs from FRII (I'm pretty sure)
# their end (my default)	fromFRII.net			fromFRII fFn
# my router IP	toFRII.net			toFRII tFn

# tmp	rrservCO.slsware.net		rsn

# FRII net (at Frasier with a bare router -- 202, 205, 204, 206 are dioded)  slsware.net	outgoing.slsware.net		outgoing osn	brouter.slsware.net		bsn	srv.slsware.net			srv ssn	mail.slsware.net		mail msn	www.slsware.net			www wsn	ns1.slsware.net			ns1n	ntp.slsware.net			nsn	gobook3.slsware.net		gobook3 gb3 gb	gobook2.slsware.net		gobook2 gb2	test.slsware.net		test t	sbox.slsware.net		sbox

# LAN using 216.17.134.?/24	printer.slsware.net		printer 4240	bridge.slsware.net		bridge br

# some temporary Juniper stuff	ssg.slsware.net			ssg fw	ssgadmin.slsware.net		ssga fwa

# netgear wifi AP	www.routerlogin.net		netgear ap AP

> the output of
> hostname -f

root@pix:~# hostname -f
hostname: Name or service not known

> hostnamectl

root@pix:~# hostnamectl
   Static hostname: sbox
Transient hostname: pix
         Icon name: computer-desktop
           Chassis: desktop
        Machine ID: d01c1f97efc944bd81768d849446feaf
           Boot ID: 50e006fce53c47a881b78f09c0bbcbe2
  Operating System: Debian GNU/Linux 10 (buster)
            Kernel: Linux 4.19.0-6-amd64
      Architecture: x86-64

Hmm. That's interesting. Transient hostname. I didn't know of
hostnamectl. Tells what it is, but not what to do about it or where it
came from.

Glenn English

Reply to: