Advertisement
Guest User

Untitled

a guest
Mar 5th, 2024
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.95 KB | Software | 0 0
  1. x@raspberrypi:~ $ dig google.com
  2.  
  3. ; <<>> DiG 9.16.48-Debian <<>> google.com
  4. ;; global options: +cmd
  5. ;; Got answer:
  6. ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 12758
  7. ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
  8.  
  9. ;; OPT PSEUDOSECTION:
  10. ; EDNS: version: 0, flags:; udp: 1232
  11. ;; QUESTION SECTION:
  12. ;google.com.            IN  A
  13.  
  14. ;; ANSWER SECTION:
  15. google.com.     264 IN  A   142.250.184.206
  16.  
  17. ;; Query time: 20 msec
  18. ;; SERVER: 1.1.1.1#53(1.1.1.1)
  19. ;; WHEN: Tue Mar 05 18:54:16 CET 2024
  20. ;; MSG SIZE  rcvd: 55
  21.  
  22. x@raspberrypi:~ $ nslookup google.com
  23. Server:     1.1.1.1
  24. Address:    1.1.1.1#53
  25.  
  26. Non-authoritative answer:
  27. Name:   google.com
  28. Address: 142.250.185.174
  29. Name:   google.com
  30. Address: 2a00:1450:4001:811::200e
  31.  
  32. x@raspberrypi:~ $ ping google.com
  33. ping: google.com: Systemfehler
  34. x@raspberrypi:~ $ ping 142.250.185.174
  35. PING 142.250.185.174 (142.250.185.174) 56(84) bytes of data.
  36. 64 bytes from 142.250.185.174: icmp_seq=1 ttl=60 time=15.0 ms
  37. 64 bytes from 142.250.185.174: icmp_seq=2 ttl=60 time=14.2 ms
  38. 64 bytes from 142.250.185.174: icmp_seq=3 ttl=60 time=14.1 ms
  39. ^C
  40. --- 142.250.185.174 ping statistics ---
  41. 3 packets transmitted, 3 received, 0% packet loss, time 2002ms
  42. rtt min/avg/max/mdev = 14.115/14.435/15.010/0.407 ms
  43. x@raspberrypi:~ $ cat /etc/resolv.conf
  44. # Generated by resolvconf
  45. nameserver 1.1.1.1
  46. x@raspberrypi:~ $ curl google.com
  47. curl: (6) Could not resolve host: google.com
  48. x@raspberrypi:~ $ cat /etc/nsswitch.conf
  49. # /etc/nsswitch.conf
  50. #
  51. # Example configuration of GNU Name Service Switch functionality.
  52. # If you have the `glibc-doc-reference' and `info' packages installed, try:
  53. # `info libc "Name Service Switch"' for information about this file.
  54.  
  55. passwd:         files
  56. group:          files
  57. shadow:         files
  58. gshadow:        files
  59.  
  60. hosts:          dns files myhostname
  61. networks:       files
  62.  
  63. protocols:      db files
  64. services:       db files
  65. ethers:         db files
  66. rpc:            db files
  67.  
  68. netgroup:       nis
  69.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement