Advertisement
Guest User

Untitled

a guest
Feb 19th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. kiuma@kxps  ~  time dig $(hostname)
  2.  
  3. ; <<>> DiG 9.12.0 <<>> kxps
  4. ;; global options: +cmd
  5. ;; Got answer:
  6. ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1392
  7. ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
  8.  
  9. ;; QUESTION SECTION:
  10. ;kxps. IN A
  11.  
  12. ;; ANSWER SECTION:
  13. kxps. 0 IN A 192.168.1.102
  14.  
  15. ;; Query time: 3 msec
  16. ;; SERVER: 192.168.1.254#53(192.168.1.254)
  17. ;; WHEN: lun feb 19 09:05:57 CET 2018
  18. ;; MSG SIZE rcvd: 38
  19.  
  20. dig $(hostname) 0,01s user 0,00s system 73% cpu 0,015 total
  21.  
  22.  
  23. kiuma@kxps  ~  time getent ahosts $(hostname)
  24. 192.168.1.102 STREAM kxps
  25. 192.168.1.102 DGRAM
  26. 192.168.1.102 RAW
  27. fe80::6870:1592:f982:a8f6 STREAM
  28. fe80::6870:1592:f982:a8f6 DGRAM
  29. fe80::6870:1592:f982:a8f6 RAW
  30. getent ahosts $(hostname) 0,00s user 0,01s system 0% cpu 20,038 total
  31.  
  32. kiuma@kxps  ~  grep ^hosts /etc/nsswitch.conf
  33. hosts: files mymachines resolve [!UNAVAIL=return] dns myhostname
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement