agneev
July 30, 2018, 10:10am
1
Please follow the below template, it will help us to help you!
My Pi's username is 'pi', it's IP address is 10.0.0.6.
Expected Behaviour:
should resolve automatically:
ssh pi@pi
Actual Behaviour:
ssh pi@pi
results in:
ssh: Could not resolve hostname pi: nodename nor servname provided, or not known
Debug Token:
5n3qdsrukm
agneev
July 30, 2018, 11:09am
3
Yes, that works.
How can I rename "pi.hole" to "pi"?
Mcat12
August 1, 2018, 12:43am
5
You have the correct mapping already in /etc/pihole/local.list
. What is the output of this command?
nslookup pi 10.0.0.6
agneev
August 7, 2018, 6:50pm
8
Mcat12:
nslookup pi 10.0.0.6
Sorry for the late reply.
It's:
root@pi:/home/pi# nslookup pi 10.0.0.6
Server: 10.0.0.6
Address: 10.0.0.6#53
Name: pi
Address: 10.0.0.6
agneev
August 7, 2018, 6:53pm
9
Also, the output of /etc/pihole/local.list
:
10.0.0.6 pi
10.0.0.6 pi.hole
Mcat12
August 8, 2018, 10:48pm
10
What is the output of that nslookup
command on the machine that was having the issue?
We need the output out of the machine you are trying to connect from. Not from the pi itself, please.
agneev
August 9, 2018, 4:10pm
14
If I traceroute "pi":
MacBook-Pro:~ Agneev$ traceroute pi
traceroute: unknown host pi
But if I traceroute to "pi.hole":
MacBook-Pro:~ Agneev$ traceroute pi.hole
traceroute to pi.hole (10.0.0.6), 64 hops max, 52 byte packets
1 pi (10.0.0.6) 2.700 ms 2.702 ms 3.962 ms
Notice how pi.hole points to pi.
Mcat12
August 9, 2018, 5:48pm
15
Check that you are only using Pi-hole as your DNS server, and clear the DNS cache. Also run this on the MacBook: nslookup pi
agneev
August 9, 2018, 5:57pm
16
In my router's web UI:
My Router IP is 10.0.0.1.
MacBook-Pro:~ Agneev$ nslookup pi
Server: 10.0.0.1
Address: 10.0.0.1#53
Name: pi
Address: 10.0.0.6
agneev
August 9, 2018, 5:58pm
17
Also how do I clear DNS cache?
Is it the equivalent of "Flush logs"? If so, I have already done it.
Mcat12
August 9, 2018, 5:59pm
18
Google "Mac flush DNS cache"
Mcat12
August 9, 2018, 6:02pm
20
The DNS servers are returning the right information, but it seems that your MacBook is not doing something right. Do you see queries in the Query Log (or pihole -t
) when you run the traceroute or try to SSH?
Mcat12
August 9, 2018, 6:12pm
22
Does that one also properly resolve via nslookup pi
? Try ssh -vvv pi@pi
From your Mac, what is the output of
scutil --dns
This command shows the true order of the nameserver's your Mac is using.