Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 07-15-2005, 09:28 AM   #1
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Rep: Reputation: 30
which is my nameserver.

mandrake 10.0

i am using squid proxy server for internet in my university.

i have a DNS problem.
which is my nameserver for /etc/resolv.conf file.
i know the proxy server IP address.
which address should use for nameserver.

where the squid proxy server look for name resolution or IP translation.
Old 07-15-2005, 09:46 AM   #2
Registered: Sep 2003
Distribution: *bsd, solaris, gentoo
Posts: 86

Rep: Reputation: 15
Your proxy server or your router, depending on your networks setup, may act as your name server, also try a 'nslookup' and the check the servers ip address it uses during it's queries.
Old 07-15-2005, 09:48 AM   #3
Registered: Apr 2001
Location: Bremen, Germany
Distribution: Debian
Posts: 303

Rep: Reputation: 30
The nslookup only works if you already have a nameserver. You should have gotten that information from your network people. If you don't have a nameserver you can find the one for your domain by doing a query starting with the root servers. For example to find the nameserver for the domain do:

demian@dirac ~$ dig ns @
[a bunch of output snipped]
;; ADDITIONAL SECTION:               172800  IN      A
[more output here]

demian@dirac ~$ dig ns @
[a bunch of output snipped]
;                 IN      NS

;; AUTHORITY SECTION:          86400   IN      NS          86400   IN      NS          86400   IN      NS          86400   IN      NS

;; ADDITIONAL SECTION: 86400   IN      A  86400   IN      A 86400 IN   A  86400   IN      A
[more output here]
Now you have them: The DNS servers for are,, and

The server with ip is one of the root servers ( So the first command asks the root server for the name server of the domain The root server answers with the servers that are authorative for the top level domain .de. The next query again asks for the dns server of but this time it asks the de server ( This server knows the answer.

If the domain name were longer you just keep going, eg if you want the dns server of you ask either of the four servers that were found to be dns servers for (ie dig ns @
Old 07-16-2005, 02:45 AM   #4
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Original Poster
Rep: Reputation: 30

[root@localhost student]# dig ns @

; <<>> DiG 9.2.3 <<>> ns @
;; global options: printcmd
;; connection timed out; no servers could be reached
[root@localhost student]#


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
nameserver Questions Swakoo Linux - Networking 3 08-18-2005 08:13 AM
get nameserver from ISP alexklant Slackware 9 06-08-2005 03:30 PM
Nameserver on different domain? greyhammer Linux - Networking 5 01-06-2005 08:31 AM
nameserver question r.stiltskin Linux - Networking 4 08-11-2004 04:46 AM
Nameserver setup tpjets62 Fedora 3 04-27-2004 03:43 AM > Forums > Linux Forums > Linux - Networking

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

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