LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   dns server. (https://www.linuxquestions.org/questions/linux-networking-3/dns-server-395231/)

bruse 12-21-2005 07:48 AM

dns server.
 
i have a problem finding dns server in my university network.
i have connected to internet via proxy server in the university.
can anyone know the port number of dns server so that i can locate a dns server IP address by using nmap.

or any command to lookup a dns server.

Medievalist 12-21-2005 12:48 PM

port 53 (usually UDP and TCP both active)

prasanta 12-22-2005 03:19 AM

Try with nslookup or dig.

--
Prasanta

timmeke 12-22-2005 07:06 AM

As prasanta said, use nslookup, like so:
nslookup
#=> gives you an nslookup prompt
#it should already tell you the default DNS server you're using (so if you're connected to the univ network,
#then you already have your answer...
#otherwise:
<univ_domain>
#This should respond with some NS (NameServer) records for the domain <univ_domain>.

#Similarly, you can also check out the mail server, etc:
set type=MX
<univ_domain>
#=> mailserver is an MX record in the DNS database.

Darin 12-22-2005 11:38 AM

I always find it easiest to get the DNS server settings off a working system on the [foreign] network. Go to a box that is working on the network and either:

Linux: cat /etc/resolv.conf
Windows 2k/XP: from a command prompt type ipconfig /all and note the DNS servers
Windows 9x/ME: run winipcfg


All times are GMT -5. The time now is 02:22 PM.