Re: Setting up DNS for virtual domains
At 09:23 AM 7/26/2000 -0400, Mostly Harmless wrote: I'm going to try to explain this as bast I can though my understanding of a lot of these issues is shaky at best. I help admin the student computing organization's servers at my school. We would like to offer full virtual domain service to our users, but we do not have a 2nd level domain -- our main domain is wso.williams.edu, also known as gertrude.williams.edu. For now, we ask the school's tech guys to change the DNS whenever we need to a new computer. I'm comfortable staying with that arrangement, but a lot of users have registered domains with places that don't provide DNS service. We can't get the school DNS to change every time this happens, so we've decided to set up our main machine as DNS Nameserver. There's two main issues as I see them -- the actual DNS configuration on the gertrude and getting the machine "known" as a Nameserver out in the wide world. Yes. Exactly. Issue 1: I've looked far and wide on the Internet (probably not far and wide enough) for resources telling me how to set up virtual domain service. Most of the examples are for Bind 4.x which make things tough (we're running 8). Essentially, we'd just like to have a lot of different domains point to the same IP: gertrude's. We'll sort it all out with Apache later (I can handle that part). But I just can't seem to figure out how to do this -- we won't be providing DNS service for the name gertrude.williams.edu or wso.williams.edu -- we just want to specify 10-20 domains that should point to gertrude's IP. I think I need a resource zone file for each domain (all based on some template) but I'm having trouble. If anyone could point me in the direction of a sample named.conf and a resource file or two for someone in my situation I'd be really grateful. I assume wso is the canonical name, I will use that. I am also going to be using the BIND 8 format, named.conf, not named.boot, as that is the recommended for Debian now. Most importantly, the potato BIND has all his files in /etc/bind, so I will follow that. Use updatedb and locate to find files in other versions. Set up BIND on wso. Use the Debian package, install the default, caching, forward only. For each domain that you are going to provide a NS for, do the following: In /etc/bind/named.conf , add the stanza --- zone "DOMAIN.com." { type master; file "/etc/bind/db.DOMAIN.com"; }; --- Substituting the actual 2nd level name domain for DOMAIN.com. Notice final "." on the zone line. In /etc/bind, create a file called db.DOMAIN.com , and populate it as follows (lines with a # prefix are comments for you, strip from file): --- ;Zone file for DOMAIN.com. @ IN SOA wso.williams.edu. jredburn.wso.williams.edu. ( # The ".", not "@" after jredburn is correct 251601 ; serial, todays date + todays serial # # I like using MMDDxx for Serial, update each time you toch this file 3600; refresh, seconds 600 ; retry, seconds 345600 ; expire, seconds 36000 ) ; minimum, seconds IN NS wso.williams.edu. MX 10 wso.williams.edu. # If you want to recieve mail for them. Else remove line above. www A IP.ADDRESS.OF.WSO MX 10 wso.williams.edu. # As above LOC 41 50 0 N 87 35 0 W # You will, of course, change this ;-) ftp IN CNAME www --- This will ensure that anyone asking wso for the adderss of www.DOMAIN.com. will be returned wso's address. Issue 2: As I understand it, none of this means much unless I can specify gertrude as the nameserver for these domains. Currently, I'm told she's not a valid nameserver. Does this mean I need to get the person who runs DNS for gertrude (the school) to edit the DNS records just this once and specify gertrude as a Nameserver? What exactly should I ask them to do? They tend to be pretty helpful as long as I know what I need done. One thing, actually. Go to Network Solutions Register page. Fill up a Host template for WSO.williams.edu. When you get a mail from them, forward it to your Tech guys, who are in charge of the williams.edu zone. Once the approve it, and send it to NSI, wso.williams.edu will be a "Host". Ask all DOMAIN.com. holders to specify the name wso.williams.edu and its IP address in their registrar's configuration. thanks much if any of you made it this far, jeremy A CC: on any reply would be much appreciated - thanks. Done. I must say that you, or the Administrator of wso, is a very generous chap. Most Administrators balk at giving users public_html access, you are willing to set up Virtual hosts!! Hope this helps -- Ghane
RE: Setting up DNS for virtual domains
Greetings, IMHO, it's not all that complicated, and I'll try to make it seem simple. In order for a machine to be a DNS server it just has to be running BIND or some equivalent (that was easy wasn't it). As long as you have a static routeable IP address and a name to go with it, you are in business. For the domains that you need DNS service for, just state that your DNS server is the DNS server for that domain (okay this is confusing). Perhaps an example! This information is totally bogus, but it will hopefully clear this up. You have a machine, we'll call it aardvark.anydomain.com and it has an IP address of 856.238.968.104 (yes, I know that this cannot possibly be valid, but I don't have any IP addresses of my own). It's running Bind 8 (because it's a potato box). I go to whomever I have my domain registered through (networksolutions.com, directnic.com, domaindiner.com, etc.), and when they ask for a DNS server, I tell them aardvark.anydomain.com, and I give them it's address of 856.238.968.104. They will tell the root servers (who really control all this stuff) that anything you want to know about domain I just registered (mynewdomain.com) can be found at aardvark.anydomain.com (856.238.968.104). Everyone on the internet then looks to the poor little aardvark, and it say that www.mynewdomain.com can be found on webserver.anydomain.com. If your looking for information on how to setup DNS service, I think that there are some HOWTO's. IMHO, DNS record writing is an art, so you probably want to ask whomever is doing your DNS service know for a template. I'd offer, but I blunder through it everytime I do. Hope I didn't confuse you anymore, Brooks > -Original Message- > From: Jeremy Redburn [mailto:[EMAIL PROTECTED] > Behalf Of Mostly Harmless > Sent: Wednesday, July 26, 2000 8:24 AM > To: debian-user@lists.debian.org; debian-isp@lists.debian.org > Subject: Setting up DNS for virtual domains > > > I'm going to try to explain this as bast I can though my understanding > of a lot of these issues is shaky at best. > > I help admin the student computing organization's servers at my school. > We would like to offer full virtual domain service to our users, but we > do not have a 2nd level domain -- our main domain is wso.williams.edu, > also known as gertrude.williams.edu. For now, we ask the school's tech > guys to change the DNS whenever we need to a new computer. I'm > comfortable staying with that arrangement, but a lot of users have > registered domains with places that don't provide DNS service. We can't > get the school DNS to change every time this happens, so we've decided > to set up our main machine as DNS Nameserver. There's two main issues as > I see them -- the actual DNS configuration on the gertrude and getting > the machine "known" as a Nameserver out in the wide world. > > Issue 1: I've looked far and wide on the Internet (probably not far and > wide enough) for resources telling me how to set up virtual domain > service. Most of the examples are for Bind 4.x which make things tough > (we're running 8). Essentially, we'd just like to have a lot of > different domains point to the same IP: gertrude's. We'll sort it all > out with Apache later (I can handle that part). But I just can't seem to > figure out how to do this -- we won't be providing DNS service for > the name gertrude.williams.edu or wso.williams.edu -- we just want to > specify 10-20 domains that should point to gertrude's IP. I think I need > a resource zone file for each domain (all based on some template) but > I'm having trouble. If anyone could point me in the direction of a > sample named.conf and a resource file or two for someone in my situation > I'd be really grateful. > > Issue 2: As I understand it, none of this means much unless I can > specify gertrude as the nameserver for these domains. Currently, I'm > told she's not a valid nameserver. Does this mean I need to get the > person who runs DNS for gertrude (the school) to edit the DNS records > just this once and specify gertrude as a Nameserver? What exactly should > I ask them to do? They tend to be pretty helpful as long as I know what > I need done. > > thanks much if any of you made it this far, > jeremy > > A CC: on any reply would be much appreciated - thanks. > > -- > "Now you see that evil will always triumph, because good is dumb." > - Dark Helmet, Spaceballs > > "You can't be a real country unless you have a beer and an airline; it > helps if you have some kind of a football team, or some nuclear > weapons, but at the very least you need a beer." > - Frank Zappa > > > -- > Unsubscribe? mail -s unsubscribe > [EMAIL PROTECTED] < /dev/null > >
Setting up DNS for virtual domains
I'm going to try to explain this as bast I can though my understanding of a lot of these issues is shaky at best. I help admin the student computing organization's servers at my school. We would like to offer full virtual domain service to our users, but we do not have a 2nd level domain -- our main domain is wso.williams.edu, also known as gertrude.williams.edu. For now, we ask the school's tech guys to change the DNS whenever we need to a new computer. I'm comfortable staying with that arrangement, but a lot of users have registered domains with places that don't provide DNS service. We can't get the school DNS to change every time this happens, so we've decided to set up our main machine as DNS Nameserver. There's two main issues as I see them -- the actual DNS configuration on the gertrude and getting the machine "known" as a Nameserver out in the wide world. Issue 1: I've looked far and wide on the Internet (probably not far and wide enough) for resources telling me how to set up virtual domain service. Most of the examples are for Bind 4.x which make things tough (we're running 8). Essentially, we'd just like to have a lot of different domains point to the same IP: gertrude's. We'll sort it all out with Apache later (I can handle that part). But I just can't seem to figure out how to do this -- we won't be providing DNS service for the name gertrude.williams.edu or wso.williams.edu -- we just want to specify 10-20 domains that should point to gertrude's IP. I think I need a resource zone file for each domain (all based on some template) but I'm having trouble. If anyone could point me in the direction of a sample named.conf and a resource file or two for someone in my situation I'd be really grateful. Issue 2: As I understand it, none of this means much unless I can specify gertrude as the nameserver for these domains. Currently, I'm told she's not a valid nameserver. Does this mean I need to get the person who runs DNS for gertrude (the school) to edit the DNS records just this once and specify gertrude as a Nameserver? What exactly should I ask them to do? They tend to be pretty helpful as long as I know what I need done. thanks much if any of you made it this far, jeremy A CC: on any reply would be much appreciated - thanks. -- "Now you see that evil will always triumph, because good is dumb." - Dark Helmet, Spaceballs "You can't be a real country unless you have a beer and an airline; it helps if you have some kind of a football team, or some nuclear weapons, but at the very least you need a beer." - Frank Zappa