LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-16-2005, 07:35 AM   #1
Sern
Member
 
Registered: May 2005
Location: New York
Distribution: Fedora Core 3
Posts: 57

Rep: Reputation: 15
2 Mail/Web Servers


Ok what i am tring to do is set up a backup apache and email server so if the first one goes down the second one picks up , but i am not 100% sure if i have the zone file set up correctly for this. My internal domain is dunnpc.com and the external domain is dunn-pc.com also heres a dump of my zone file dunn-pc.com.db (BTW im using Fedora Core 3)
Code:
$TTL    86400
@       IN SOA  dunn-pc.com. azabielski.dunn-pc.com. (
                                        2003040701      ;serial
                                        28800           ; refresh
                                        14400           ; retry
                                        3600000         ; expiry
                                        86400 )         ; minimum
; Name Servers
                IN NS           ns1.dunn-pc.com
                IN NS           ns2.dunn-pc.com
; Mail Servers
                IN MX 10        whbmail.dunnpc.com
                IN MX 20        whb-linuxbackup.dunnpc.com
; Public Servers
ns1     IN      A       192.168.20.8
ns2     IN      A       192.168.20.9
www     IN      A       192.168.20.8
www     IN      A       192.168.20.9
 
Old 05-17-2005, 05:29 AM   #2
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
Can you list the output of:

1) dig dunn-pc.com soa
2) dig dunn-pc.com ns
3) dig ns1.dunn-pc.com a
4) dig -x 192.168.20.8

Also, you mentioned that dunn-pc.com is your external domain, but yet you are assigning rfc1918 addresses to be returned in the answer. Internally this makes since, but not if you plan on on having this server queried from the internet.
 
Old 05-17-2005, 08:27 AM   #3
Sern
Member
 
Registered: May 2005
Location: New York
Distribution: Fedora Core 3
Posts: 57

Original Poster
Rep: Reputation: 15
haha yea i figured this out , im a moron. Anyway my problem now is getting the servers on 2 diffrent IP's lol
 
Old 05-17-2005, 09:31 AM   #4
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
if you are behind a NAT and using private IP space then how many public IPs do you have? If you only have one public IP then the only way I can think of to serve from two different machines behind it is if your router supports some sort of load balancing or failover. I don't belive any of the home/SOHO routers (dsl modem, cable modem, etc) support this.

I also noted that your zonefile has multiple A records for the same machine. When setting up a DNS zone I've learned to use a single A record for each server and then CNAMEs for the other DNS names that point to that system. I'm not sure of the exact source that started me doing this, but it seems like good practice to have one address per server and then point all the other DNS names to those record. Something like this:
Code:
@      SOA  adomain.com.   webmaster.adomain.com. (
                                        2005051701 ;serial
                                        8h                 ; refresh
                                        4h                 ; retry
                                        15d               ; expiry
                                        224h )          ; minimum
; Name Servers
      NS           ns1.adomain.com.
      NS           ns2.adomain.com.
; Mail Servers
      MX 10        mail1.adomain.com.
      MX 20        mail2.adomain.com.
; Public Servers
bart           A       192.168.20.8
maggie      A       192.168.20.9

;Canonical names
www1    CNAME bart.adomain.com.
www2    CNAME maggie
ns1         CNAME bart
ns2         CNAME maggie
mail1      CNAME bart
mail2      CNAME maggie
Also note that the NS and MX records do not define a host record per se, they are pointers and need to resolve to one of the DNS records. This is why in my example I have an MX record for mail1 and then a CNAME to define what mail1 is. Another note, you left the trailing periods off some of the records in your first post. When you do not end a record with the dot, it basically tacks on the zone name at the end, so just plain ns.adomain.com actually means ns.adomain.com.adomain.com.
 
Old 05-17-2005, 10:29 AM   #5
Sern
Member
 
Registered: May 2005
Location: New York
Distribution: Fedora Core 3
Posts: 57

Original Poster
Rep: Reputation: 15
Awesome thank you so much. We have a block of ips , the problem is we only had 1 released to us at this location. We have a cisco router , that does support load balanceing and failover. How could use these to run it off the same IP??

ALSO i am having another problem filtering users from computers when attaching winbind and samba with active directory and setting up sendmail with active directory any help you can offer would be great

Thanks again
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix mail transfer agent not sending mail locally or to other servers sketelsen Linux - Software 3 02-09-2006 11:16 AM
adding more web servers to make web server farm linuxboy69 Linux - Networking 5 07-09-2004 09:50 AM
Best free web and e-mail servers grogers Linux - Software 1 11-30-2002 09:26 PM
GUI for servers config ( smb, mail, web) gillesb Linux - Newbie 3 09-29-2002 12:44 PM
2 web servers hawkes Linux - Networking 3 05-24-2001 10:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration