[NTLUG:Discuss] how do I run two instances of named?
MadHat
madhat at unspecific.com
Thu Aug 10 21:01:29 CDT 2000
m m wrote:
>
> >From: MadHat <madhat at unspecific.com>
> >
> >m m wrote:
> > >
> > > Hi all:
> > > as Title, How do I run two instances of named at boottime?
> > >
> > > in the /etc/rc.d/init.d/named (RH 6.2) start section, I edit like:
> > >
> > > ...
> > > daemon named -u nobody -g nobode /etc/named.public.conf
> > > daemon named -u nobody -g nobode /etc/named.private.conf
> > > ...
> > > (there are these two files)
> > >
> > > it seems does not work in this way, do it?
> > > when I check with "ps auxww | grep named" it only show the first one.
> > >
> > > any help?
> >
> >Unless you bind them to different ports, you can't. You can only have
> >one daemon listenning to aany given port at a time. The first one binds
> >to port 53 so the second one can't start. The other option would be to
> >have each one bind to a different IP, like thereal IP for the "public"
> >and a nonroutable (10., 172.) to the private, but I am not sure how to
>
> Is this the way people uses linux box for firewall?
I just have mine set up as a cache only DNS. Which means all it does is
cache the stuff from outside for use inside (more or less). I don't try
to serve off of mine.
>
> >do that right off the top of my head.
>
> could you give me some hint or direction to find how to do this?
I would look to see if there was an option in named to bind it to a
specific address. Part would depend on the version you are using, I
would suspect.
--
MadHat at unspecific.com
"The 3 great virtues of a programmer:
Laziness, Impatience, and Hubris."
--Larry Wall
More information about the Discuss
mailing list