dig problem .
I want to get a IP address from hostname.
Here i have the problem like this.. [root@hall43 root]# dig google.com ; <<>> DiG 9.2.1 <<>> google.com ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 41505 ;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 13, ADDITIONAL: 0 ;; QUESTION SECTION: ;google.com. IN A ;; AUTHORITY SECTION: . 518400 IN NS H.ROOT-SERVERS.NET. . 518400 IN NS I.ROOT-SERVERS.NET. . 518400 IN NS J.ROOT-SERVERS.NET. . 518400 IN NS K.ROOT-SERVERS.NET. . 518400 IN NS L.ROOT-SERVERS.NET. . 518400 IN NS M.ROOT-SERVERS.NET. . 518400 IN NS A.ROOT-SERVERS.NET. . 518400 IN NS B.ROOT-SERVERS.NET. . 518400 IN NS C.ROOT-SERVERS.NET. . 518400 IN NS D.ROOT-SERVERS.NET. . 518400 IN NS E.ROOT-SERVERS.NET. . 518400 IN NS F.ROOT-SERVERS.NET. . 518400 IN NS G.ROOT-SERVERS.NET. ;; Query time: 13 msec ;; SERVER: 10.1.1.1#53(10.1.1.1) ;; WHEN: Sat Nov 26 18:19:10 2005 ;; MSG SIZE rcvd: 239 [root@hall43 root]# [root@hall43 root]# cat /etc/resolv.conf search iitk.ac.in cc.iitk.ac.in nameserver 10.1.1.1 [root@hall43 root]# Can u pls resolve this problem ?? |
[root@hall43 root]# nslookup www.yahoo.com
Note: nslookup is deprecated and may be removed from future releases. Consider using the `dig' or `host' programs instead. Run nslookup with the `-sil[ent]' option to prevent this message from appearing. Server: 10.1.1.1 Address: 10.1.1.1#53 Non-authoritative answer: *** Can't find www.yahoo.com: No answer [root@hall43 root]# |
Do you have your dns servers correctly configured in /etc/resolv.conf?
|
After some experiment with my DNS server..
I found this result.. [root@hall43 root]# dig @10.1.1.2 www.linuxquestions.org ; <<>> DiG 9.2.1 <<>> @10.1.1.2 www.linuxquestions.org ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 39672 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 3, ADDITIONAL: 1 ;; QUESTION SECTION: ;www.linuxquestions.org. IN A ;; ANSWER SECTION: www.linuxquestions.org. 3374 IN A 64.179.4.149 ;; AUTHORITY SECTION: linuxquestions.org. 3371 IN NS ns2.linuxquestions.org. linuxquestions.org. 3371 IN NS ns1.linuxquestions.net. linuxquestions.org. 3371 IN NS ns1.linuxquestions.org. ;; ADDITIONAL SECTION: ns1.linuxquestions.net. 93322 IN A 64.179.4.150 ;; Query time: 3 msec ;; SERVER: 10.1.1.2#53(1.1.1.2) ;; WHEN: Sat Nov 26 19:14:22 2005 ;; MSG SIZE rcvd: 144 [root@hall43 root]# nmap 64.179.4.149 Starting nmap V. 3.00 ( www.insecure.org/nmap/ ) Note: Host seems down. If it is really up, but blocking our ping probes, try -P0 Nmap run completed -- 1 IP address (0 hosts up) scanned in 30 seconds [root@hall43 root]# ping 64.179.4.149 PING 64.179.4.149 (64.179.4.149) 56(84) bytes of data. --- 64.179.4.149 ping statistics --- 57 packets transmitted, 0 received, 100% packet loss, time 56013ms [root@hall43 root]# ping 64.179.4.150 PING 64.179.4.150 (64.179.4.150) 56(84) bytes of data. --- 64.179.4.150 ping statistics --- 15 packets transmitted, 0 received, 100% packet loss, time 14013ms [root@hall43 root]# |
All times are GMT -5. The time now is 10:18 PM. |