Guest User

Untitled

a guest
Sep 20th, 2016
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. pi@raspberrypi:~ $ cat /etc/hosts
  2. 127.0.0.1 localhost
  3. ::1 localhost ip6-localhost ip6-loopback
  4. ff02::1 ip6-allnodes
  5. ff02::2 ip6-allrouters
  6.  
  7. 127.0.1.1 raspberrypi
  8. pi@raspberrypi:~ $ dig localhost && cat /var/log/pihole.log | grep 'localhost'
  9.  
  10. ; <<>> DiG 9.9.5-9+deb8u6-Raspbian <<>> localhost
  11. ;; global options: +cmd
  12. ;; Got answer:
  13. ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 56261
  14. ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
  15.  
  16. ;; OPT PSEUDOSECTION:
  17. ; EDNS: version: 0, flags:; udp: 4096
  18. ;; QUESTION SECTION:
  19. ;localhost. IN A
  20.  
  21. ;; ANSWER SECTION:
  22. localhost. 300 IN A 127.0.0.1
  23.  
  24. ;; Query time: 15 msec
  25. ;; SERVER: 127.0.0.1#53(127.0.0.1)
  26. ;; WHEN: Tue Sep 20 15:06:04 EDT 2016
  27. ;; MSG SIZE rcvd: 54
  28.  
  29. Sep 20 15:06:04 dnsmasq[458]: query[A] localhost from 127.0.0.1
  30. Sep 20 15:06:04 dnsmasq[458]: /etc/hosts localhost is 127.0.0.1
  31. pi@raspberrypi:~ $ cat /var/log/pihole.log | grep 'toshiba'
  32. pi@raspberrypi:~ $ ping -c 1 192.168.1.3
  33. ping: icmp open socket: Operation not permitted
  34. pi@raspberrypi:~ $ sudo ping -c 1 192.168.1.3
  35. PING 192.168.1.3 (192.168.1.3) 56(84) bytes of data.
  36. 64 bytes from 192.168.1.3: icmp_seq=1 ttl=128 time=3.50 ms
  37.  
  38. --- 192.168.1.3 ping statistics ---
  39. 1 packets transmitted, 1 received, 0% packet loss, time 0ms
  40. rtt min/avg/max/mdev = 3.506/3.506/3.506/0.000 ms
  41. pi@raspberrypi:~ $
Advertisement
Add Comment
Please, Sign In to add comment