How to configure dns via tcp?

Asked by BiGuocai

On Ubuntu, DNS uses UDP by default. For some reason, I wanna change it to using TCP, but I don't know how. Anyone can help?
PS: I prefer some way other than using bind9 as a proxy.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu pdnsd Edit question
Assignee:
No assignee Edit question
Solved by:
Tom Hurd
Solved:
Last query:
Last reply:
Revision history for this message
Best Tom Hurd (thurd) said :
#1

I've never used it, but pdnsd might be what you are looking for. http://www.phys.uu.nl/~rombouts/pdnsd/. http://manpages.ubuntu.com/manpages/jaunty/man8/pdnsd.8.html

Some info from the man page:

-mxx sets the query method pdnsd uses. Possible values for xx
                     are:

                     uo - pdnsd will use UDP only. This is the fastest method,
                     and should be supported by all name servers on the
                     Internet.

                     to - pdnsd will use TCP only. TCP queries usually take
                     more time than UDP queries, but are more secure against
                     certain attacks, where an attacker tries to guess your
                     query id and to send forged answers. TCP queries are not
                     supported by some name servers.

                     tu - pdnsd will try to use TCP, and will fall back to UDP
                     if its connection is refused or times out.

Revision history for this message
BiGuocai (0-------------0) said :
#2

Thanks Tom Hurd, that solved my question.