Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!paladin.american.edu!zombie.ncsc.mil!nntp.coast.net!howland.reston.ans.net!newsfeed.internetmci.com!quanta.com!rsww From: rsww@quanta.com (Ross Walker) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: Please - Spoil the Ending! Date: 3 Jan 1996 16:53:31 GMT Organization: Quanta Communications, Inc. Lines: 122 Distribution: inet Message-ID: <4cecab$qih@news.quanta.com> References: <4c57h6$c34@gol2.gol.com> NNTP-Posting-Host: quanta.quanta.com X-Newsreader: TIN [version 1.2 PL2] Doug Lerner (doug@gol.com) wrote: : I am reading "DNS & BIND" as quickly as I can right now. Unlike a : mystery novel, I wouldn't mind at all if somebody ruined the ending for : me and told me whether what I want to do is easily configurable or not! : I have: : o one Class C network : o a leased line to an Internet provider via a gateway router : o a handful of machines (mostly Macs, one Windows 95 and one FreeBSD) : o TWO domain names (one I've been using for a BBS and a new one I want : to use for a completely different BBS) : My FreeBSD machine is currently doing primary name serving for my : network and my provider is doing secondary. : I am adding a Livingston Portmaster to the LAN to give BBS members : access to dialup PPP. : My question, simply put, is can I handle both domain names easily out of : the one FreeBSD box? : I know I can easily receive e-mail for either BBS with the one, but I : also want outgoing mail to show the correct "from" domain name depending : on which BBS mail comes from. : Would it make life simpler if I just got another FreeBSD box and : duplicated everything, just changing domain names and running each : system side-by-side? : Do I need to split my Class C in two parts? Is there any reason why one : network can't have two domain names with different IP addresses : belonging to different domain names arbitrarily? Is there any problem : with both domain names using the same gateway router? : Any hints to appropriate passages in "DNS & BIND" and general comments : would be appreciated. Maybe I can turn this into a good Q&A document for : everybody when I am done! : Thanks! : Doug Lerner, : Tokyo Domain names are not tied to IP addresses. I have one FreeBSD box hanling mail for 3 domains right now. I have IP addresses, single or a range of, given out to different domains. The only thing that is tied with an IP address is the machine that will handle it's reverse name lookup. What domain name it has is irrelevant. This is the named.boot setup I use. directory /etc/namedb cache . named.root primary 120.71.204.IN-ADDR.ARPA quanta1.rev primary 121.71.204.IN-ADDR.ARPA quanta2.rev primary 122.71.204.IN-ADDR.ARPA quanta3.rev primary quanta.com quanta.hosts primary mwm.com mwm.hosts primary gswine.com gswine.hosts The first three entries are for My reverse name lookup, one for each class C. The last three are the domains that the machine handles. Here are copies of what one of the quanta.rev maps looks like. This one is quanta3.rev, it handles the virtual web class C so it is a good example of a mixed domain reverse look-up map. @ IN SOA quanta.com. hostmaster.quanta.com. ( 95123001 ; Serial 3600 ; Refresh 300 ; Retry 3600000 ; Expire 3600 ) ; Minimum IN NS ns1.quanta.com. IN NS ns2.quanta.com. 1 IN PTR secure.quanta.com. 2 IN PTR www.mwm.com. 3 IN PTR www.zeiss.com. This shows that in a reverse name-lookup map the host names associated with the IP addresses in a given class C don't have to be in the same domain. Here is what a domain map for lets say mwm.com which I process their mail, and provide a virtual web server for. @ IN SOA mwm.com. hostmaster.quanta.com. ( 95121201 ; Serial 3600 ; Refresh 300 ; Retry 3600000 ; Expire 3600 ) ; Minimum IN NS ns1.quanta.com. IN NS ns2.quanta.com. IN MX 1 mailhost.quanta.com. www IN A 204.71.122.2 IN MX 1 mailhost.quanta.com. Notice under the declaration of the nameservers for the domain I put a high priority Mail eXchage record (pri 1) this will make sure that mail going to that domain is sent to the host mentioned on the right. I hope this is helpful. DNS is really pretty straight forward once you overcome the hurdle of syntax idioms. Having the O'Reilly book is good for looking up the format of some of the rather obscure record types. Avoid wildcards, different servers handle them strangely. Cheers, Ross Walker -- ------------------------------------------------------------------------------ | /\/ | Ross S. W. Walker (rsww@quanta.com) | \/\ | | | |\ | finger rsww@quanta.com for PGP key _____________________________ | |___|/ | | Quanta Communications, Inc. ------------------------------------------------------------------------------