When I type sudo -i on my Rpi it works but I get the following
warning..
"sudo: Unable to resolve host intranet-pihole2: Name or service not
known."
Anyone give a clue why I get that?
Yes this is a spare machine used as a backup for my pihole and
intranet pi.
Thanks.
Bob.
On 26/09/2023 10:15, Bob Latham wrote:
When I type sudo -i on my Rpi it works but I get the following
warning..
"sudo: Unable to resolve host intranet-pihole2: Name or service not
known."
Anyone give a clue why I get that?
Yes this is a spare machine used as a backup for my pihole and
intranet pi.
Thanks.
Bob.
Look in /etc/hosts and /etc/hostname
Does that name exist?
In article <ueubl9$2f4rp$1@dont-email.me>,
Chris Elvidge <chris@mshome.net> wrote:
On 26/09/2023 10:15, Bob Latham wrote:
When I type sudo -i on my Rpi it works but I get the following
warning..
"sudo: Unable to resolve host intranet-pihole2: Name or service not
known."
Anyone give a clue why I get that?
Yes this is a spare machine used as a backup for my pihole and
intranet pi.
Thanks.
Bob.
Look in /etc/hosts and /etc/hostname
Does that name exist?
Thanks.
Yes. It exists in /etc/hostname but not in /etc/hosts.
It is the network name of the machine it is running on.
I presume nasty things will happen if I delete it?
Bob.
On 26/09/2023 13:37, Bob Latham wrote:
In article <ueubl9$2f4rp$1@dont-email.me>,
Chris Elvidge <chris@mshome.net> wrote:
On 26/09/2023 10:15, Bob Latham wrote:
When I type sudo -i on my Rpi it works but I get the following
warning..
"sudo: Unable to resolve host intranet-pihole2: Name or service not
known."
Anyone give a clue why I get that?
Yes this is a spare machine used as a backup for my pihole and
intranet pi.
Thanks.
Bob.
Look in /etc/hosts and /etc/hostname
Does that name exist?
Thanks.
Yes. It exists in /etc/hostname but not in /etc/hosts.
It is the network name of the machine it is running on.
I presume nasty things will happen if I delete it?
Bob.
I think they already have
My /etc/host looks like this
$ more /etc/hosts
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
127.0.1.1 heating-controller
You need to make yours look similar but with 'heating-controller'
replaced with 'intranet-pihole'.
In article <ueumtt$2h6ld$2@dont-email.me>,
The Natural Philosopher <tnp@invalid.invalid> wrote:
On 26/09/2023 13:37, Bob Latham wrote:
In article <ueubl9$2f4rp$1@dont-email.me>,I think they already have
Chris Elvidge <chris@mshome.net> wrote:
On 26/09/2023 10:15, Bob Latham wrote:
When I type sudo -i on my Rpi it works but I get the following
warning..
"sudo: Unable to resolve host intranet-pihole2: Name or service not
known."
Anyone give a clue why I get that?
Yes this is a spare machine used as a backup for my pihole and
intranet pi.
Thanks.
Bob.
Look in /etc/hosts and /etc/hostname
Does that name exist?
Thanks.
Yes. It exists in /etc/hostname but not in /etc/hosts.
It is the network name of the machine it is running on.
I presume nasty things will happen if I delete it?
Bob.
My /etc/host looks like this
$ more /etc/hosts
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
127.0.1.1 heating-controller
You need to make yours look similar but with 'heating-controller'
replaced with 'intranet-pihole'.
Oh right, that's interesting. The /etc/host file had much the same as
yours except the network name was original and so when I changed the
name using raspi-config last week, it failed to change the name there
but it did change on the network.
Anyway just put it right and it has fixed the issue.
Sysop: | Weed Hopper |
---|---|
Location: | Clearwater, FL |
Users: | 14 |
Nodes: | 6 (0 / 6) |
Uptime: | 231:08:41 |
Calls: | 55 |
Calls today: | 1 |
Files: | 50,127 |
D/L today: |
29 files (3,538K bytes) |
Messages: | 275,355 |