alamsyah rasyid blogry

Testing dns server dengan nslookup

Posted on: July 12, 2008

Dns ngambek?

Gak tahu server dns mana yang OK?

Ya di coba saja pake nslookup :-)

Dari gambar di atas terlihat bahwa Dns server nya ada 2 :

  1. 202.146.178.4
  2. 208.67.222.222

Kadang-kadang isian ini terisi hanya 1 saja, 2 atau bisa lebih dari 1.

Cara untuk testing apakah server dns ini bekerja baik bisa dengan menghapus ‘preferred’ dns server dan mengganti posisinya atau bisa juga menggunakan nslookup.

Caranya :

1. Klik start -> run

isikan cmd dan tekan OK.

2. Masuk ke DOS prompt

Tinggal di tes :


C:\Documents and Settings\Administrator>nslookup
Default Server:  dnscache1.elnus.net.id
Address:  202.146.178.4

> http://www.yahoo.com
Server:  dnscache1.elnus.net.id
Address:  202.146.178.4

Non-authoritative answer:
Name:    http://www.yahoo-ht3.akadns.net
Address:  209.131.36.158
Aliases:  http://www.yahoo.com

> server 208.67.222.222
Default Server:  resolver1.opendns.com
Address:  208.67.222.222

> http://www.detik.com
Server:  resolver1.opendns.com
Address:  208.67.222.222

Non-authoritative answer:
Name:    detik.com
Addresses:  202.158.66.94, 203.190.241.41, 203.190.241.43, 202.158.66.190
202.158.66.86, 203.190.241.166, 202.158.66.20
Aliases:  http://www.detik.com
> help
Commands:   (identifiers are shown in uppercase, [] means optional)
NAME            – print info about the host/domain NAME using default server
NAME1 NAME2     – as above, but use NAME2 as server
help or ?       – print info on common commands
set OPTION      – set an option
all                 – print options, current server and host
[no]debug           – print debugging information
[no]d2              – print exhaustive debugging information
[no]defname         – append domain name to each query
[no]recurse         – ask for recursive answer to query
[no]search          – use domain search list
[no]vc              – always use a virtual circuit
domain=NAME         – set default domain name to NAME
srchlist=N1[/N2/.../N6] – set domain to N1 and search list to N1,N2, etc.
root=NAME           – set root server to NAME
retry=X             – set number of retries to X
timeout=X           – set initial time-out interval to X seconds
type=X              – set query type (ex. A,ANY,CNAME,MX,NS,PTR,SOA,SRV)
querytype=X         – same as type
class=X             – set query class (ex. IN (Internet), ANY)
[no]msxfr           – use MS fast zone transfer
ixfrver=X           – current version to use in IXFR transfer request
server NAME     – set default server to NAME, using current default server
lserver NAME    – set default server to NAME, using initial server
finger [USER]   – finger the optional NAME at the current default host
root            – set current default server to the root
ls [opt] DOMAIN [> FILE] – list addresses in DOMAIN (optional: output to FILE)
-a          -  list canonical names and aliases
-d          -  list all records
-t TYPE     -  list records of the given type (e.g. A,CNAME,MX,NS,PTR etc.)
view FILE           – sort an ‘ls’ output file and view it with pg
exit            – exit the program

> server 208.67.222.222
Default Server:  resolver1.opendns.com
Address:  208.67.222.222

> lserver 202.146.178.4
Default Server:  dnscache1.elnus.net.id
Address:  202.146.178.4

>

Yup, untuk tes server mana yang bekerja sekarang bisa di pakai perintah :

server ip dns server

untuk berganti ke dns server sebelumnya di gunakan perintah :

lserver ip dns server

seperti contoh di atas :-)

About these ads

3 Responses to "Testing dns server dengan nslookup"

sebenernya mo mampir doang, nyari shoutout box… tapi ga ada, jadi leave comment disini aja bole ta?
Happy birthday yaaa… tetep mewarnai perkancahan blog indonesia…salam untuk nike yakkk:D

hueeeee pengen coba pakk :D

wadh jadi bingung…………ikut nimbrung ja ah……….salkenal ….

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Flickr Photos

knockdownhouse.com

knockdownhouse.com

knockdownhouse.com

knockdownhouse.com

knockdownhouse.com

More Photos

Blog Stats

  • 52,184 hits

Peringkat

Alamsyah Rank
July 2008
M T W T F S S
« Jun    
 123456
78910111213
14151617181920
21222324252627
28293031  
Follow

Get every new post delivered to your Inbox.

%d bloggers like this: