From owner-freebsd-questions Thu Feb 29 23:11:49 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id XAA21678 for questions-outgoing; Thu, 29 Feb 1996 23:11:49 -0800 (PST) Received: from obie.softweyr.com (slcmodem1-p2-5.intele.net [204.118.149.120]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id XAA21669 for ; Thu, 29 Feb 1996 23:11:44 -0800 (PST) Received: (from wes@localhost) by obie.softweyr.com (8.6.12/8.6.12) id AAA06411; Fri, 1 Mar 1996 00:13:05 -0800 Date: Fri, 1 Mar 1996 00:13:05 -0800 Message-Id: <199603010813.AAA06411@obie.softweyr.com> From: wes@intele.net To: questions@freebsd.org Subject: forwarded message from Mail Delivery Subsystem Sender: owner-questions@freebsd.org Precedence: bulk Bill, my message to you bounced. I'll send it to freebsd-questions in the hopes that you see it. Maybe it'll even do someone else some good. I've answered this question before, but never quite so exhaustively. ;^) billdun@clever.net writes: > Wes, > Thanks for your help. > I went out and got the O'Reilly books. > I am confused about what to put in: I'll include copies of my configuration files and try to point out where you might need to change yours. This is from FreeBSD 2.1.0-R. > resolv.conf ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ domain softweyr.com <- use your domain name nameserver 204.68.178.1 <- address of your DNS server ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > named.boot Is found in /etc/namedb/named.boot, as indicated by the sysconfig entry mentioned later. It contains: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ directory /etc/namedb ; type domain source host/file primary softweyr.com softweyr.hosts primary 178.68.204.IN-ADDR.ARPA softweyr.rev primary 0.0.127.IN-ADDR.ARPA localhost.rev cache . root.cache ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > sysconfig I've configured my system to *not* used routed, for the simple reason that it holds the PPP link "up" once I've established it. I set my link with a 10-minute timeout, and I want it to drop the link if I'm not using it, since I have a monthly time limit on my ISP account. If you have a connection to the internet through a router or another machine, you should just make that your default router and not run routed either. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ... # Set to the host you'd like set as your default router, or NO for none. defaultrouter="204.68.178.1" <-- put your default router here. # These are the flags you'd like to start the routing daemon with # routedflags="-s" # routedflags="-q" routedflags="NO" ... # Set to appropriate flags for named, if you have a full-time # connection to the Internet. # For most hosts, flags should be "-b /etc/namedb/named.boot" namedflags="-b /etc/namedb/named.boot" #namedflags="NO" ... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > hosts ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 127.0.0.1 localhost.softweyr.com localhost <-- always 204.68.178.1 obie.softweyr.com obie < put your 204.68.178.126 gateway.softweyr.com gateway gw < hosts here ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > host.conf ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ hosts <-- look in /etc/hosts first bind <-- then consult dns to find host addresses ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > and in namedb directory I don't have the files > they talk about in the book. Yes, you need to create these. Here are mine, completely unedited, this and the O'Reilly book should be enough to get you going. If you have specific questions, e-mail back. Notice that these files are mentioned in named.boot above. softweyr.hosts ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ; Wes Peters; Sat Jan 7 22:59:55 1995 @ IN SOA softweyr.com. wes.softweyr.com. ( 960126 ; Serial - date last changed 3600 ; Refresh 300 ; Retry 3600000 ; Expire 3600 ) ; Minimum IN NS ns.softweyr.com. localhost IN A 127.0.0.1 obie IN A 204.68.178.1 obie IN HINFO "486dx2/66" "FreeBSD 2.1R" gateway IN A 204.68.178.126 gateway IN HINFO "386sx/16" "FreeBSD 2.1R" ns IN CNAME obie mx IN CNAME obie gw IN CNAME gateway obie IN MX 5 mx gateway IN MX 5 mx softweyr.com. IN MX 10 mx ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ softweyr.rev ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ; Wes Peters; Fri Sep 30 14:04:24 MDT 1994 @ IN SOA softweyr.com. wes.softweyr.com. ( 951227 ; Serial - date last changed 3600 ; Refresh 300 ; Retry 3600000 ; Expire 3600 ) ; Minimum IN NS obie.softweyr.com. 1 IN PTR obie.softweyr.com. 126 IN PTR gateway.softweyr.com. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ localhost.rev ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ; Wes Peters; Fri Sep 30 14:04:24 MDT 1994 @ IN SOA softweyr.com. wes.softweyr.com. ( 940930 ; Serial - date last changed 3600 ; Refresh 300 ; Retry 3600000 ; Expire 3600 ) ; Minimum IN NS obie.softweyr.com. 1 IN PTR localhost.softweyr.com. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > I just want to set up the domain name service > and function as a webserver. > It seems I have complicated this seemingly simple task. It's only simple if you've done it before. ;^) You should be able to hack my files into something useful for you in a few minutes. > I'll be working this evening until about 11:00 pm > at 1-800-875-9757. > Thanks for helping me out of this BIND. Sorry I've responded so late, I don't usually read my mail on this account during the day. Good luck. -- Wes Peters | Yes I am a pirate, two hundred years too late Softweyr | The cannons don't thunder, there's nothing to plunder Consulting | I'm an over forty victim of fate... wes@intele.net | Jimmy Buffett