Go Premium for a chance to win a PS4. Enter to Win


Could we configure DNS to use TCP ?

Posted on 2009-05-06
Medium Priority
Last Modified: 2012-06-27
I feel by default DNS uses UDP protocol on port 53. Could we configure it to let it use the TCP as well ? /etc/services shows it support both TCP and UDP.
bash-3.00# grep 53 /etc/services 
domain          53/udp
domain          53/tcp

Open in new window

Question by:beer9
LVL 48

Expert Comment

ID: 24312665
Depends what DNS server you are running.

Author Comment

ID: 24314160
What if I am using BIND, does is support both TCP and UDP by default? Thanks!
LVL 62

Expert Comment

ID: 24314213
DNS over TCP is almost never used.
Any server out there supports DNS over TCP but no clients use that by default.
Since it is that rarely used I suspect more problems in there.
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.


Accepted Solution

jarrell earned 1000 total points
ID: 24315868
Generally TCP uses UDP for speed, but if the answer doesn't fit into a single udp packet, it'll switch to using TCP.  Which I've seen cause problems with some clients; we broke some software when our SPF record (which is in a TXT on the domain names RR) got too big, and we were doing TCP all of a sudden.
LVL 62

Expert Comment

ID: 24318808
It depends on client. Some servers do send chain of UDP packets with huge record...

Author Closing Comment

ID: 31578360
Thank you :-)

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses
Course of the Month13 days, 6 hours left to enroll

972 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question