LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-22-2004, 01:51 AM   #1
emailssent
Member
 
Registered: Sep 2004
Posts: 312

Rep: Reputation: 30
dig command questions DNS


1)I am sharing internet through proxy server

what should put in the ip of the dns server tho use dig command, whether i should put address of proxy server or the address of dns server


dig @DNS_server host

and when i tried with dns server ip it says,
# dig @172.16.0.1 www.linuxquestions.org

; <<>> DiG 9.2.3rc2 <<>> @172.16.0.1 www.linuxquestions.org
;; global options: printcmd
;; connection timed out; no servers could be reached

and when i tried with proxy server ip it says same thing as above.

#/etc/resolv.conf
nameserver 127.0.0.1
nameserver 192.168.1.2
nameserver 172.16.0.1


2)# nslookup www.linuxquestions.org
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.
;; connection timed out; no servers could be reached

how can i run nslookup command
 
Old 09-22-2004, 03:17 AM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Well no one could possibly know what DNS servers you have available. You have to find out from your system administrator what IPs to use for /etc/resolv.conf. If you've setup your own network, have you also setup a DNS daemon? If so, did you configure it to allow recursive queries? Have you setup a firewall?
 
Old 09-22-2004, 04:17 AM   #3
emailssent
Member
 
Registered: Sep 2004
Posts: 312

Original Poster
Rep: Reputation: 30
thanks chort for your response,

I am not asking you my dns server address

for using dig command, what should i put into the dns server address

either

1)whether i should put address of proxy server

2) or the address of dns server

becz i am accessing net through the proxy server.
 
Old 09-22-2004, 05:56 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
You must put your ISP's nameservers in /etc/resolv.conf if you don't have your own DNS.
Also in dig or nslookup (even if it's deprecated) you must supply a valid DNS IP address. So use again your ISP's DNS.
Those 192.168.x.x and 172.16.x.x are private IPs used in lans and not in public, so you have to be sure that there are nameservers running at those IPs at your lan.
If you access the net through proxy, then the box that runs the proxy server must be configured with valid DNS entries.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dig command questions DNS emailssent Linux - Networking 2 09-24-2004 09:27 AM
DNS newbie cant get dig to work - part II palmercabel Linux - Networking 8 01-21-2004 04:42 PM
DNS newbie cant get dig to work on RH9 palmercabel Linux - Networking 4 01-16-2004 05:35 PM
wrong dns ip w/ dig. registrar's fault? SerfurJ Linux - Networking 4 01-09-2004 12:08 PM
dns question (dig maybe) lenlutz Linux - Networking 2 10-03-2003 07:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration