-   Linux - Networking (
-   -   which is my nameserver. (

bruse 07-15-2005 08:28 AM

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.

evilchild 07-15-2005 08:46 AM

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.

demian 07-15-2005 08:48 AM

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 @

bruse 07-16-2005 01:45 AM


[root@localhost student]# dig ns @

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

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