Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- kiuma@kxps ~ time dig $(hostname)
- ; <<>> DiG 9.12.0 <<>> kxps
- ;; global options: +cmd
- ;; Got answer:
- ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1392
- ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
- ;; QUESTION SECTION:
- ;kxps. IN A
- ;; ANSWER SECTION:
- kxps. 0 IN A 192.168.1.102
- ;; Query time: 3 msec
- ;; SERVER: 192.168.1.254#53(192.168.1.254)
- ;; WHEN: lun feb 19 09:05:57 CET 2018
- ;; MSG SIZE rcvd: 38
- dig $(hostname) 0,01s user 0,00s system 73% cpu 0,015 total
- kiuma@kxps ~ time getent ahosts $(hostname)
- 192.168.1.102 STREAM kxps
- 192.168.1.102 DGRAM
- 192.168.1.102 RAW
- fe80::6870:1592:f982:a8f6 STREAM
- fe80::6870:1592:f982:a8f6 DGRAM
- fe80::6870:1592:f982:a8f6 RAW
- getent ahosts $(hostname) 0,00s user 0,01s system 0% cpu 20,038 total
- kiuma@kxps ~ grep ^hosts /etc/nsswitch.conf
- hosts: files mymachines resolve [!UNAVAIL=return] dns myhostname
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement