Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Mar 1996 00:13:05 -0800
From:      wes@intele.net
To:        questions@freebsd.org
Subject:   forwarded message from Mail Delivery Subsystem
Message-ID:  <199603010813.AAA06411@obie.softweyr.com>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199603010813.AAA06411>