[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: Help DNS!!



Title: Help DNS!!
Hi:
 
There may be less circuitous approaches, but I kinda like the "follow what the vendors do in the way that they do it" rule.  Here's my two cents -- it SHOULD work (according to the doc and a bit of playing with it) :-)  This is one scenario for two totally separate servers (different configs) on the same box:
 
Look in the options{} section of /etc/named.conf.  There is a directive there that is commented-out by default which looks like:
 
    options {
        directory "/var/named";
/* several comments, then */
        // query-source address * port 53;
...
}
 
Uncomment that line and change the "53" to a value you like.  Save the result to a NEW file, maybe something like altnamed.conf.
 
You might then look in /etc/rc.d/init.d and clone off the "named" script...
# cp named altnamed
 
Don't forget to make it executable by root.
 
Edit that file and change this line:
[ -f /etc/named.conf ] || exit 0
to
[ -f /etc/altnamed.conf ] || exit 0
 
Below that you see the case structure with one of the cases being:
  start)
        # Start daemons.
        echo -n "Starting named: "
        daemon named -u named
        RETVAL=$?
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/named
        echo
        ;;
 
Change the "daemon" line to
        daemon named -u named -c /etc/altnamed.conf
 
 
You could now issue the command
# /etc/rc.d/init.d/altnamed start
 
 
If you want this to start automagically when you restart your system, you can make start and stop links in the appropriate /etc/rc.d/rc[1-5].d.
 
On the other hand, if you wanted ALL servers that are running on the same box to use the SAME configuration, you still would do all the stuff in /etc/rc.d/init.d and /etc/rc[1-5].d as before but in the cloned-off script, change the daemon line to
 
    daemon named -u named -p port_of_your_choice
 
Hope this sheds a bit of light.  I put named firmly in the same category as sendmail.  It's got a zillion options and does everything but the dishes.  But try and do this kind of configuration "out of the box" can be confusing at best.
 
Best of luck!
Bill
-----Original Message-----
From: Dergachev Andrey [mailto:Andrey Dergachev ecitele com]
Sent: Thursday, March 15, 2001 11:36 AM
To: redhat-install-list redhat com
Subject: Help DNS!!

We want build and install 2nd DNS Servers on one
workstation and with one IP address ,but on
another ports. ( One from him is port 53, another -
unknown f.e 42900 )

We hope for you  answer
Thank you


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]