So I got my new machine and I'm setting it up to be a primary and secondary DNS server. It has two ethernet cards. Instead of doing IP aliasing like I had previously intented, can't I setup the same thing like:
eth0 ip X.X.X.188 primary DNS: 127.0.0.1 secondary DNS: X.X.X.178 eth1 ip X.X.X.178 primary DNS: 127.0.0.1 secondary DNS: X.X.X.178 Won't named respond to DNS requests on both interfaces? Ideas? Ryan ----- Original Message ----- From: "Michael Torrie" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, February 01, 2003 8:41 AM Subject: Re: [uug] Two name servers for the price of one (revisted in moredetail) > On Sat, 2003-02-01 at 00:16, Michael Ryan Byrd wrote: > > Against the better judgement of many, I've decided to replace my name > > servers, two aging PIIs (ns1 & ns2) with a new dual pentium III. Here's my > > notes and questions before the project. Any comments? Ideas of things not > > quite right? > > Having a DNS server with 2 ip addresses is really kind of pointless on a > single machine. Oh well. > > > > > Setting up ns1.example.com and ns2.example.com on one box: > > ns1.example.com #.#.#.188 > > ns2.example.com #.#.#.178 > > > > (1) install RH 8.0 as DNS server > > (2) when prompted for hostname enter: ns1.example.com > > (2) when prompted for ip address enter: #.#.#.188 > > (3) when prompted for name servers enter: 127.0.0.1 as primary and #.#.#.178 > > as secondary > > (4) copy over /var/named/named.conf and /var/named/*.zone from old > > ns1.example.com > > > > Q. The current ns1 is running RH 7.2. I'm loading the new ns1 with RH 8.0. > > Can I just copy over named.conf and the zone files and expect BIND/named to > > act correctly? > > I don't know about this one. Should work. RH 8 is bind 9. Not sure > what rh 72 was, but if it was bind 8, then you may need to tweak the > files a little bit. I wouldn't expect too many problems. > > > > > (5) set up ip alias interface: > > /sbin/ifconfig lo 127.0.0.1 > > /sbin/ifconfig eth0 up > > /sbin/ifconfig eth0 #.#.#.188 > > /sbin/ifconfig eth0:0 #.#.#.178 > > > > (6) set up ip routes > > /sbin/route add -net 127.0.0.1 > > /sbin/route add -net #.#.#.188 dev eth0 > > /sbin/route add -net #.#.#.178 dev eth0 > > > > Q. do I need a "route default gw" here? why? > > Of course. You always need a default route. How else will your DNS > server find other DNS servers and the root servers? > > > > > (7) put 5 & 6 into /etc/rc.d/rc.local so if machine gets rebooted, settings > > will persist. > > You needn't do that. If you configure the network interfaces with > RedHat's tools, they'll come up automatically, even ip aliases like > eth0:0. RedHat should bring up lo automatically anyway. > > > > > So, if I unplug the current ns1 & ns2 and plug in the new ns1/2 will > > everything work like before? > > In theory... > > > > > TIA! > > > > Ryan > > > > > > ____________________ > > BYU Unix Users Group > > http://uug.byu.edu/ > > ___________________________________________________________________ > > List Info: http://phantom.byu.edu/cgi-bin/mailman/listinfo/uug-list > -- > Michael Torrie <[EMAIL PROTECTED]> > > > ____________________ > BYU Unix Users Group > http://uug.byu.edu/ > ___________________________________________________________________ > List Info: http://phantom.byu.edu/cgi-bin/mailman/listinfo/uug-list ____________________ BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________ List Info: http://phantom.byu.edu/cgi-bin/mailman/listinfo/uug-list
