Similar topics
Cara Menggunakan Command DNS Lookup di Linux/Unix
:: Computer Stuff :: Linux
Page 1 of 1
Cara Menggunakan Command DNS Lookup di Linux/Unix
Sistem operasi linux sebenarnya sudah menyediakan perintah atau command khusus bagi kita semua untuk menggunakan fasilitas DNS Lookup, sayangnya banyak dari kita yang jarang menggunakannya dan lebih memilih software atau website buatan pihak ketiga untuk keperluan yang satu ini. Pada kesempatan posting kali ini saya mencoba sharing bagaimana caranya mengunakan fasilitas DNS Lookup menggunakan perintah host dan dig, untuk mengintip segala informasi berkaitan dengan keberadaan suatu DNS.
host command
command atau perintah host adalah perintah sederhana yang secara langsung akan memberikan informasi secara lengkap pada suatu DNS, jika anda menggunakan perintah host tanpa diikuti suatu opsi apapun maka akan di tampilkan informasi singkat berkaitan dengan DNS tersebut, contoh
arie@arie:~$ host numb.web.id
numb.web.id has address 180.235.148.79
numb.web.id mail is handled by 0 numb.web.id.
cara menampilkan IP address dari domain
arie@arie:~$ host -t a numb.web.id
numb.web.id has address 180.235.148.79
cara menampilkan domain mail server
arie@arie:~$ host -t a numb.web.id
numb.web.id has address 180.235.148.79
cara menampilkan domain name server
arie@arie:~$ host -t ns numb.web.id
numb.web.id name server iix1.myprivatedns.com.
numb.web.id name server iix2.myprivatedns.com.
numb.web.id name server iix3.myprivatedns.com.
cara menampilkan TXT record dari suatu domain
arie@arie:~$ host -t txt numb.web.id
numb.web.id has no TXT record
cara menampilkan cname record pada domain
arie@arie:~$ host -t cname numb.web.id
numb.web.id has no CNAME record
cara menampilkan SOA record pada domain
arie@arie:~$ host -t SOA numb.web.id
numb.web.id has SOA record iix1.myprivatedns.com. server.duadns.com. 2009120502 86400 7200 3600000 86400
cara melakukan query pada name server
arie@arie:~$ host numb.web.id iix1.myprivatedns.com
Using domain server:
Name: iix1.myprivatedns.com
Address: 180.235.148.70#53
Aliases:
numb.web.id has address 180.235.148.79
numb.web.id mail is handled by 0 numb.web.id.
Cara menampilkan semua informasi tentang suatu DNS
anda bisa menggunakan opsi -a atau opsi -t any, seperti contoh berikut
arie@arie:~$ host -a numb.web.id
atau
host -t any numb.web.id
hasilnya
arie@arie:~$ host -a numb.web.id
Trying "numb.web.id"
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 43900
;; flags: qr rd ra; QUERY: 1, ANSWER: 6, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;numb.web.id. IN ANY
;; ANSWER SECTION:
numb.web.id. 14400 IN MX 0 numb.web.id.
numb.web.id. 86400 IN SOA iix1.myprivatedns.com. server.duadns.com. 2009120502 86400 7200 3600000 86400
numb.web.id. 86400 IN NS iix1.myprivatedns.com.
numb.web.id. 86400 IN NS iix2.myprivatedns.com.
numb.web.id. 86400 IN NS iix3.myprivatedns.com.
numb.web.id. 14400 IN A 180.235.148.79
Received 184 bytes from 8.8.8.8#53 in 102 ms
by Arie Iswadi
host command
command atau perintah host adalah perintah sederhana yang secara langsung akan memberikan informasi secara lengkap pada suatu DNS, jika anda menggunakan perintah host tanpa diikuti suatu opsi apapun maka akan di tampilkan informasi singkat berkaitan dengan DNS tersebut, contoh
arie@arie:~$ host numb.web.id
numb.web.id has address 180.235.148.79
numb.web.id mail is handled by 0 numb.web.id.
cara menampilkan IP address dari domain
arie@arie:~$ host -t a numb.web.id
numb.web.id has address 180.235.148.79
cara menampilkan domain mail server
arie@arie:~$ host -t a numb.web.id
numb.web.id has address 180.235.148.79
cara menampilkan domain name server
arie@arie:~$ host -t ns numb.web.id
numb.web.id name server iix1.myprivatedns.com.
numb.web.id name server iix2.myprivatedns.com.
numb.web.id name server iix3.myprivatedns.com.
cara menampilkan TXT record dari suatu domain
arie@arie:~$ host -t txt numb.web.id
numb.web.id has no TXT record
cara menampilkan cname record pada domain
arie@arie:~$ host -t cname numb.web.id
numb.web.id has no CNAME record
cara menampilkan SOA record pada domain
arie@arie:~$ host -t SOA numb.web.id
numb.web.id has SOA record iix1.myprivatedns.com. server.duadns.com. 2009120502 86400 7200 3600000 86400
cara melakukan query pada name server
arie@arie:~$ host numb.web.id iix1.myprivatedns.com
Using domain server:
Name: iix1.myprivatedns.com
Address: 180.235.148.70#53
Aliases:
numb.web.id has address 180.235.148.79
numb.web.id mail is handled by 0 numb.web.id.
Cara menampilkan semua informasi tentang suatu DNS
anda bisa menggunakan opsi -a atau opsi -t any, seperti contoh berikut
arie@arie:~$ host -a numb.web.id
atau
host -t any numb.web.id
hasilnya
arie@arie:~$ host -a numb.web.id
Trying "numb.web.id"
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 43900
;; flags: qr rd ra; QUERY: 1, ANSWER: 6, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;numb.web.id. IN ANY
;; ANSWER SECTION:
numb.web.id. 14400 IN MX 0 numb.web.id.
numb.web.id. 86400 IN SOA iix1.myprivatedns.com. server.duadns.com. 2009120502 86400 7200 3600000 86400
numb.web.id. 86400 IN NS iix1.myprivatedns.com.
numb.web.id. 86400 IN NS iix2.myprivatedns.com.
numb.web.id. 86400 IN NS iix3.myprivatedns.com.
numb.web.id. 14400 IN A 180.235.148.79
Received 184 bytes from 8.8.8.8#53 in 102 ms
by Arie Iswadi
Ble-Art- Co Admin
- Jumlah posting : 87
Points : 164
Join date : 2010-09-27
Lokasi : tabung
Similar topics
» Cara Menampilkan IP Address Komputer di Panel Ubuntu
» Menghemat Quota dengan Menggunakan Dnsmasq dan Squid
» Cara Install UBUNTU 11.04 Natty Narwhal
» Menghemat Quota dengan Menggunakan Dnsmasq dan Squid
» Cara Install UBUNTU 11.04 Natty Narwhal
:: Computer Stuff :: Linux
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|