VectorLinux
July 29, 2014, 06:41:53 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: BIND DNS server on TCP or UDP?  (Read 1355 times)
narke
Member
*
Posts: 9



« on: April 26, 2009, 06:23:23 am »

Hello,

I have lauched BIND server on my computre to see how it works.
Then I scanned my host to see which ports were open and I saw that the 53  was open as TCP port.
I always read that DNS is working on UDP, so how can it handle UDP requests if it is accpeting only TCP packets?

Code:
bash-3.1# nmap localhost

Starting Nmap 4.60 ( http://nmap.org ) at 2009-04-26 16:02 GMT
Interesting ports on localhost (127.0.0.1):
Not shown: 1712 closed ports
PORT    STATE SERVICE
53/tcp  open  domain
631/tcp open  ipp
953/tcp open  rndc


Then I scanned with netstat and it shows that the port 53 is open as an UDP port.

Code:
bash-3.1# netstat -anu
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State     
udp        0      0 0.0.0.0:55829           0.0.0.0:*                         
udp        0      0 192.168.0.3:53          0.0.0.0:*                         
udp        0      0 127.0.0.1:53            0.0.0.0:*                         
udp        0      0 192.168.0.3:53          0.0.0.0:*                         
udp        0      0 127.0.0.1:53            0.0.0.0:*                         
udp        0      0 0.0.0.0:68              0.0.0.0:*                         
udp        0      0 0.0.0.0:50122           0.0.0.0:*                         
udp        0      0 0.0.0.0:631             0.0.0.0:*



So I am confused, how can it be TCP and UDP at the same time?
Which tool is wrong? Or it's me?

If I send an UDP packet does it will accept while running in TCP mode?

Thank's in advance

P.S:
I know that theorically UDP packets are for short requests and TCP packets are for zone tranfer.
Logged
bigpaws
Vectorian
****
Posts: 1844


« Reply #1 on: April 26, 2009, 06:46:17 pm »

A port can be open for TCP, UPD or both.

Bigpaws
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!