Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Jan 2000 19:26:30 -0500
From:      "Martin Gignac" <martyg@sympatico.ca>
To:        "Chris Manjoine" <chris-manjoine@uiowa.edu>, <freebsd-newbies@FreeBSD.ORG>
Subject:   Re: Primary DNS setup problems
Message-ID:  <000d01bf58a5$fbefad20$33f3acce@martingignac>
References:  <4.2.2.20000106150136.00ab4f00@mail.vpr.uiowa.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.

------=_NextPart_000_000A_01BF587B.EF48A380
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I just set up a secondary BIND 8.1.2 server (on a FreeBSD machine) at =
the company I work for that's a slave to a primary BIND 4.9.5 running on =
Windows NT 4.0.

It took all of five minutes to set up and get working, all without a =
hitch. I used the PROTO.localhost.rev shell script to create the =
localhost.rev file. After adding the zones for which it would slave, I =
started the thing, and it simply worked.

My named.conf file is basically the stock one that comes with FreeBSD, =
with my zones added in.

You gotta make sure you either don't have a /etc/resolv.conf file, or =
that /etc/resolv.conf looks kinda like this:

domain        <INSERT DOMAIN NAME HERE>
nameserver    0.0.0.0
nameserver    <INSERT OTHER KNOWN SERVERS YOU ARE
nameserver    AUTHORIZED TO USE>

The /etc/resolv.conf isn't necessary on your FreeBSD machine running the =
BIND server, as it will talk to named directly, but if you have one and =
the first nameserver is 0.0.0.0, you'll basically have the same result.

Can you expand on what you mean by 'doesn't work at all'? Does the =
command 'tail /var/log/messages' show any messages about named running =
starting up correctly (or not)? Can you use nslookup on your server?

Let me know,

-Martin

----- Original Message -----=20
  From: Chris Manjoine=20
  To: freebsd-newbies@FreeBSD.ORG=20
  Sent: Thursday, January 06, 2000 4:32 PM
  Subject: Primary DNS setup problems


  Ok I have set up DNS on a redhat box before and I thought this would =
be straight forward I have added the configurations in my named.conf =
file to goto my zone but nothing happens. I can't get it to work at all=20


  named.conf

  options {
          directory "/etc/namedb";
          pid-file "/var/run/named.pid";
          };

  zone "." {
          type hint;
          file "/etc/namedb/db.cache";
          };

  zone "0.0.127.IN-ADDR.ARPA" {
          type master;
          file "/etc/namedb/0.0.127.IN-ADDR.ARPA.hosts";
          };
                =20


  I want to get the caching name server setup first to avoid any simple =
errors but this will not even work.
  the db.cache is the same as everyone else has and the =
0.0.127.IN-ADDR.ARPA.hosts

  @               IN      SOA     ns.linux.bogus. =
hostmaster.linux.bogus. (
                                  1       ; Serial
                                  8H      ; Refresh
                                  2H      ; Retry
                                  1W      ; Expire
                                  1D)     ; Minimum TTL
                          NS      ns.linux.bogus.
  1                       PTR     localhost.



  rc.conf file stuff NOTE THAT I AM USING A DHCP CLIENT THAT LINKS TO A =
STATIC IP

  # -- sysinstall generated deltas -- #
  network_interfaces=3D"ep0 lo0"
  ifconfig_ep0=3D"DHCP"
  # -- sysinstall generated deltas -- #
  named_enable=3D"YES"

  Other info available at request~                     =20

------=_NextPart_000_000A_01BF587B.EF48A380
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2919.6307" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>I just set up a secondary&nbsp;BIND 8.1.2 server (on =
a FreeBSD=20
machine) at the company I work for that's a slave to a primary BIND =
4.9.5=20
running on Windows NT 4.0.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>It took all of five minutes to set up and get =
working, all=20
without a hitch. I used the PROTO.localhost.rev shell script to create =
the=20
localhost.rev file. After adding the zones for which it would slave, I =
started=20
the thing, and it simply worked.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>My named.conf file is basically the stock one that =
comes with=20
FreeBSD, with my zones added in.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>You gotta make sure you either don't have a =
/etc/resolv.conf=20
file, or that /etc/resolv.conf looks kinda like this:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>domain&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&lt;INSERT DOMAIN=20
NAME HERE&gt;</FONT></DIV>
<DIV><FONT size=3D2>nameserver&nbsp;&nbsp;&nbsp; 0.0.0.0</FONT></DIV>
<DIV><FONT size=3D2>nameserver&nbsp;&nbsp;&nbsp; &lt;INSERT OTHER KNOWN =
SERVERS=20
YOU ARE</FONT></DIV>
<DIV><FONT size=3D2>nameserver&nbsp;&nbsp;&nbsp; AUTHORIZED TO=20
USE&gt;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>The /etc/resolv.conf isn't necessary on your FreeBSD =
machine=20
running the BIND server, as it will talk to named directly, but if you =
have one=20
and the first nameserver is 0.0.0.0, you'll basically have the same=20
result.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>Can you expand on what you mean by 'doesn't work at =
all'? Does=20
the command 'tail /var/log/messages' show any messages about named =
running=20
starting up correctly (or not)? Can you use nslookup on your=20
server?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>Let me know,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>-Martin</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>----- Original Message ----- </DIV>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: =
0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
  <DIV=20
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
  <A href=3D"mailto:chris-manjoine@uiowa.edu" =
title=3Dchris-manjoine@uiowa.edu>Chris=20
  Manjoine</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A=20
  href=3D"mailto:freebsd-newbies@FreeBSD.ORG"=20
  title=3Dfreebsd-newbies@FreeBSD.ORG>freebsd-newbies@FreeBSD.ORG</A> =
</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Thursday, January 06, =
2000 4:32=20
  PM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> Primary DNS setup =
problems</DIV>
  <DIV><BR></DIV>Ok I have set up DNS on a redhat box before and I =
thought this=20
  would be straight forward I have added the configurations in my =
named.conf=20
  file to goto my zone but nothing happens. I can't get it to work at =
all=20
  <BR><BR><BR>named.conf<BR><BR>options=20
  {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; directory=20
  "/etc/namedb";<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pid-file=20
  "/var/run/named.pid";<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  };<BR><BR>zone "." {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
type=20
  hint;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; file=20
  "/etc/namedb/db.cache";<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  };<BR><BR>zone "0.0.127.IN-ADDR.ARPA"=20
  {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; type=20
  master;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; file=20
  =
"/etc/namedb/0.0.127.IN-ADDR.ARPA.hosts";<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
  =
};<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
  <BR><BR><BR>I want to get the caching name server setup first to avoid =
any=20
  simple errors but this will not even work.<BR>the db.cache is the same =
as=20
  everyone else has and the 0.0.127.IN-ADDR.ARPA.hosts<BR><BR><FONT=20
  face=3D"Courier New, =
Courier">@&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;=20
  IN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SOA&nbsp;&nbsp;&nbsp;&nbsp; =
ns.linux.bogus.=20
  hostmaster.linux.bogus.=20
  =
(<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;=20
  =
Serial<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  8H&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;=20
  =
Refresh<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  2H&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;=20
  =
Retry<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  1W&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;=20
  =
Expire<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  1D)&nbsp;&nbsp;&nbsp;&nbsp; ; Minimum=20
  =
TTL<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

  NS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  =
ns.linux.bogus.<BR>1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;=20
  PTR&nbsp;&nbsp;&nbsp;&nbsp; localhost.<BR><BR><BR><BR></FONT>rc.conf =
file=20
  stuff NOTE THAT I AM USING A DHCP CLIENT THAT LINKS TO A STATIC =
IP<BR><BR># --=20
  sysinstall generated deltas -- #<BR>network_interfaces=3D"ep0=20
  lo0"<BR>ifconfig_ep0=3D"DHCP"<BR># -- sysinstall generated deltas --=20
  #<BR>named_enable=3D"YES"<BR><BR>Other info available at=20
  =
request~&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
</BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_000A_01BF587B.EF48A380--



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-newbies" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000d01bf58a5$fbefad20$33f3acce>