LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-16-2011, 09:56 AM   #1
aparna8877
Member
 
Registered: Dec 2011
Posts: 34

Rep: Reputation: Disabled
How to change DNS Port number ?


FRIENDS,


Q.)How to change the default PORT NUMBER OF DNS IN LINUX ?
 
Old 12-16-2011, 10:41 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
DNS port 53 is what virtually all applications use to query DNS so changing it would be pointless as it would only insure most applications could no longer query your DNS server.

Why are you asking this question? Maybe there's another way to accomplish your underlying purpose?
 
Old 12-16-2011, 10:51 AM   #3
aparna8877
Member
 
Registered: Dec 2011
Posts: 34

Original Poster
Rep: Reputation: Disabled
Thanks Friend for replying to my question.

Regards,
Aparna.
 
Old 12-17-2011, 02:52 PM   #4
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
Quote:
Originally Posted by aparna8877 View Post
Q.)How to change the default PORT NUMBER OF DNS IN LINUX ?
I'm not sure that I know enough to answer all of the questions that this might really be, but I do know enough to know that it is ambiguous enough to be difficult to answer:
  • the default number (53) is the default, because it is what happens if you don't change it. If, eg, post install, you change it, you are no longer using the default. From that point of view, you can't change the default, unless you make, a new distro with a different default; otherwise, you have actually changed the port-in-use, but not changed the default. I don't think that this is what you wanted to know
  • Probably you wanted to know 'how do you change the number from the default?'. there are several ways to do that, and it, kind of, depends on exactly what you are trying to do -
  • are you trying to get a client to use an unconventional port?
  • are you trying to get a DNS server to respond on an unconventional port?

In any case, you can probably get iptables to move traffic from one port to another. That is less than an enthusiastic recommendation that this is what you ought to do in some particular circumstance, though.

If you are talking about the DNS server (eg, Bind, or whatever) there may well be a configuration file option to change one of the ports - potentially, there is a 'listen-on' port and 'forward-query-on' port to consider, and you should know which of those you are talking about. But then, I certainly can't say that I know all DNS Servers well enough to suggest that they are all as flexible as BIND...but, then again, you can also argue that this is, as a general consideration, a good thing.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Change MySQL port number tristanlee85 Linux - Networking 2 07-03-2007 12:50 AM
Port number in DNS records 300zxkyle Linux - Networking 4 06-25-2007 08:07 AM
Change ssh port number israel Linux - Software 2 08-30-2006 05:18 AM
how to change the port number of an application tijo.thomas Linux - Kernel 1 08-23-2006 03:45 AM
How to change Exim port number? ylikone Linux - Software 2 06-26-2005 12:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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