Running two named - Listen-on Directive

Rajiv Ghai ghair at vsnl.com
Thu Dec 2 05:18:49 UTC 1999


Hi everyone,
I am new to the list so please just tell me what I am doing wrong or point
me in the right direction. I have been stuck for a month trying to figure
it out.
I am using Linux 6.0 Bind 8.2 on a standalone linux server with incoming
Win9x ppp-connections.
I have two types of users registered and unregistered. To make life simple
for the users I would like to have two different name resolutions for the
above two category of users.
My idea was to run named on port 53 and port 83 by using the listen-on
directive in two different named.conf files. The second one called
namedfake.conf. I start two named with the two different conf files and
find two named daemons running when I do a ps ax.
Then depending on the user ID I redirect all incoming udp/tcp requests to
port 53 to port 83 using ipchains. I see from the logs that the incoming
packets are redirected OK to port 83.
I  find in /var.log/messages
listening on 127.0.0.1 (53)
listening on 192.168.0.13 (53) 
listening on 192.168.0.13 (83)
With two error messages
ndc pipe broken and bind address already in use.
I find name resolution only works on port 53.
I know that named.conf and namedfake.conf are otherwise configured OK as
they both resolve the site names correctly when running on port 53.
My questions:
1. Is there something fundamentally wrong with my setup ie. running named
on two ports simultaneously on the same address?
2. If it is impossible what would be an alternative setup to try to
accomplish what I want to do ? ie. give different name resolutions to
different set of users from one linux box.
3. How can I test my setup using nslookup on port 83 ?
Regards
Rajiv
 


More information about the bind-users mailing list