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>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
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 -----
From: Chris Manjoine
To: freebsd-newbies@FreeBSD.ORG
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
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";
};
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="ep0 lo0"
ifconfig_ep0="DHCP"
# -- sysinstall generated deltas -- #
named_enable="YES"
Other info available at request~
[-- Attachment #2 --]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2919.6307" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>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.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>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.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>My named.conf file is basically the stock one that comes with
FreeBSD, with my zones added in.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>You gotta make sure you either don't have a /etc/resolv.conf
file, or that /etc/resolv.conf looks kinda like this:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>domain <INSERT DOMAIN
NAME HERE></FONT></DIV>
<DIV><FONT size=2>nameserver 0.0.0.0</FONT></DIV>
<DIV><FONT size=2>nameserver <INSERT OTHER KNOWN SERVERS
YOU ARE</FONT></DIV>
<DIV><FONT size=2>nameserver AUTHORIZED TO
USE></FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>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.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>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?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>Let me know,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>-Martin</FONT></DIV>
<DIV> </DIV>
<DIV>----- Original Message ----- </DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A href="mailto:chris-manjoine@uiowa.edu" title=chris-manjoine@uiowa.edu>Chris
Manjoine</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
href="mailto:freebsd-newbies@FreeBSD.ORG"
title=freebsd-newbies@FreeBSD.ORG>freebsd-newbies@FreeBSD.ORG</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, January 06, 2000 4:32
PM</DIV>
<DIV style="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
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
<BR><BR><BR>named.conf<BR><BR>options
{<BR> directory
"/etc/namedb";<BR> pid-file
"/var/run/named.pid";<BR>
};<BR><BR>zone "." {<BR> type
hint;<BR> file
"/etc/namedb/db.cache";<BR>
};<BR><BR>zone "0.0.127.IN-ADDR.ARPA"
{<BR> type
master;<BR> file
"/etc/namedb/0.0.127.IN-ADDR.ARPA.hosts";<BR>
};<BR>
<BR><BR><BR>I want to get the caching name server setup first to avoid any
simple errors but this will not even work.<BR>the db.cache is the same as
everyone else has and the 0.0.127.IN-ADDR.ARPA.hosts<BR><BR><FONT
face="Courier New, Courier">@
IN SOA ns.linux.bogus.
hostmaster.linux.bogus.
(<BR>
1 ;
Serial<BR>
8H ;
Refresh<BR>
2H ;
Retry<BR>
1W ;
Expire<BR>
1D) ; Minimum
TTL<BR>
NS
ns.linux.bogus.<BR>1
PTR localhost.<BR><BR><BR><BR></FONT>rc.conf file
stuff NOTE THAT I AM USING A DHCP CLIENT THAT LINKS TO A STATIC IP<BR><BR># --
sysinstall generated deltas -- #<BR>network_interfaces="ep0
lo0"<BR>ifconfig_ep0="DHCP"<BR># -- sysinstall generated deltas --
#<BR>named_enable="YES"<BR><BR>Other info available at
request~
</BLOCKQUOTE></BODY></HTML>
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000d01bf58a5$fbefad20$33f3acce>
