LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-15-2005, 09:28 AM   #1
bruse
Member
 
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
evilchild
Member
 
Registered: Sep 2003
Location: 127.0.0.1
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
demian
Member
 
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 uni-bremen.de do:

Code:
demian@dirac ~$ dig uni-bremen.de ns @192.5.5.241
[a bunch of output snipped]
;; ADDITIONAL SECTION:
A.NIC.de.               172800  IN      A       193.0.7.3
[more output here]

demian@dirac ~$ dig uni-bremen.de ns @193.0.7.3
[a bunch of output snipped]
;; QUESTION SECTION:
;uni-bremen.de.                 IN      NS

;; AUTHORITY SECTION:
uni-bremen.de.          86400   IN      NS      ines.zfn.uni-bremen.de.
uni-bremen.de.          86400   IN      NS      alf.zfn.uni-bremen.de.
uni-bremen.de.          86400   IN      NS      ns.informatik.uni-bremen.de.
uni-bremen.de.          86400   IN      NS      ws-kar1.win-ip.dfn.de.

;; ADDITIONAL SECTION:
ines.zfn.uni-bremen.de. 86400   IN      A       134.102.20.20
alf.zfn.uni-bremen.de.  86400   IN      A       134.102.20.22
ns.informatik.uni-bremen.de. 86400 IN   A       134.102.200.14
ws-kar1.win-ip.dfn.de.  86400   IN      A       193.174.75.154
[more output here]
Now you have them: The DNS servers for uni-bremen.de are 134.102.20.20, 134.102.20.22, 134.102.200.14 and 193.174.75.154

The server with ip 192.5.5.241 is one of the root servers (f.root-servers.net). So the first command asks the root server for the name server of the domain uni-bremen.de. 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 uni-bremen.de but this time it asks the de server a.nic.de (193.0.7.3). This server knows the answer.

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

Original Poster
Rep: Reputation: 30
I HAVE THIS OUTPUT.

[root@localhost student]# dig physik.uni-bremen.de ns @134.102.20.20

; <<>> DiG 9.2.3 <<>> physik.uni-bremen.de ns @134.102.20.20
;; global options: printcmd
;; connection timed out; no servers could be reached
[root@localhost student]#
 
  


Reply


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

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

All times are GMT -5. The time now is 04:04 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