1 |
,--[ On Thu, Dec 27, 2007 at 08:20:37PM +0100, Ralf Stephan wrote: |
2 |
| > While trying to prevent 'net-dns/pdnsd' to listen on TCP and on to |
3 |
| > avoid TCP queries, I changed 'tcp_server' parameter to 'off' and |
4 |
| > 'query_method' parameter to 'udp_only' in /etc/pdnsd/pdnsd.conf . But |
5 |
| > when I restarted pdnsd I found it is still listening on TCP. I checked |
6 |
| > /etc/conf.d/pdnsd and found no option related to listening to 'TCP' |
7 |
| > set. So, then I checked /etc/init.d/pdnsd and I found that 'pdnsd' has |
8 |
| > been launched with '-t' command line argument (enables the TCP server |
9 |
| > thread. pdnsd will then serve TCP and UDP queries.) . So to disable, I |
10 |
| > need to append '--notcp' to PDNSDCONFIG in /etc/conf.d/pdnsd. So I |
11 |
| > think, listening shouldn't be made by default, even if it is, then it |
12 |
| > should be in configuration file, not in init.d script . |
13 |
| |
14 |
| Since noone answered, I'll try. I'm not into the details of your |
15 |
| problem but I have the impression your suggestion should be stated |
16 |
| to the pdnsd developing community, not on gentoo. I'd qualify it as |
17 |
| bug, but YMMV, and again, I don't know much about it. |
18 |
|
19 |
Let me elaborate it a bit: |
20 |
|
21 |
pdnsd is a DNS server capable of listening on TCP/UDP ports (depending |
22 |
on options in configuration file and commandline). Options set on |
23 |
commandline override what is set is configuration file. And, in init |
24 |
script of this port, the option to listen on TCP ports, i.e. '-t' |
25 |
switch, has been explicitly passed. So, there is no way, one can disable |
26 |
listening on TCP from pdnsd.conf. So one, has to edit '/etc/conf.d/pdnsd' |
27 |
and add --notcp option. In my view, from the point-of least privileges, |
28 |
one has to explicitly turn on listening of daemon on port. |
29 |
|
30 |
So its a problem on Gentoo porting side, not with the pdnsd team. |
31 |
|
32 |
Thanks. |
33 |
-- |
34 |
Ashish Shukla आशीष शुक्ल http://wahjava.wordpress.com/ |
35 |
·-- ·- ···· ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- -- |