I have written up the necessary config files for your dns, Julian. They
may need some tweaking, but they should match the setup you describe
below.
The named.conf goes in /etc. The other two files go in /var/named, and
are the actual files which named (dns) uses to keep track on computers
and IP addresses. They are the actual database files, while named.conf
simply tells named that those files exist, and where to find them.
The config is based on my my own dns system (which works perfectly),
which is running on a RedHat 6.2 server. There may be some minor
differences with the Mandrake version of named, but I don't know for
sure. Just try them out, and if they don't work right away, read the
docs and tweak the files as necessary.
Anyway, once they are working, set your local PCs to use your Linux
server as their primary dns server, and it will be able to resolve your
local network for you.
Dave
On Fri, 2002-01-04 at 09:04, Julian Opificius wrote:
> But even if the fqdn IS in the hosts file, it wont serve it to the local
> LAN if hosts isn't used in DNS resolution!
>
> There's no point in a local machine going up to my ISP's nameserver to find
> name/address mappings for another machine on my computer is there? DNS for
> the local LAN has to be handled by a NS that has authority for my LAN. Who
> else could that be than my local Linux server running DNS?
>
> Here's my line-up:
>
> My fixed IP is 209.173.210.166, and it has a real name of
> julianop.swdata.com. I'm making julianop.swdata.com a subdomain, and will,
> when I get this all sorted out, run FTP, HTPP, SMTP, and POP3 servers. But
> I'm not there yet ...
>
> I have four machines:
> anoka.julianop.swdata.com (linux server at 10.0.0.2, DNS set to
> 206.196.47.10 & 20),
> sierra.julianop.swdata.com (win98 at 10.0.0.3, DNS to 10.0.0.2),
> monsta.julianop.swdata.com (win98 at 10.0.0.5, DNS to 10.0.0.2), and
> pongo.julianop.swdata.com (win98 at 10.0.0.5, DNS to 10.0.0.2).
>
> They are on my private lan, behind NAT. No DNS server in the world is going
> to answer a DNS request from sierra asking what pongo's IP address is.
>
> Sierra doesn't yet know that pongo is on it's own subnet - it could be off
> in Outer Mongolia, so it sends a DNS request to the DNS server it's been
> told to ask for IP resolution.
>
> Who fulfills DNS requests for local machines if not anoka? I've been told
> that bind doesn't look at /etc/hosts, which brought my world crashing down.
> Now what? :-)
>
> Thanks for your patience with me, I'm sure we're nearly at the bottom of this.
>
> julian.
> =========================
> >Gerald
> >
> >
> >
> >
> >Want to buy your Pack or Services from MandrakeSoft?
> >Go to http://www.mandrakestore.com
>
> ==============================
> Julian A. Opificius.
> 802 Fawn Road, Elk River, MN 55330.
> Home: 763.441.1291, Cell: 763.360.5919
> [EMAIL PROTECTED] ICQ: 3268206
> ==============================
>
>
>
> ----
>
> Want to buy your Pack or Services from MandrakeSoft?
> Go to http://www.mandrakestore.com
--
Do not meddle in the affairs of dragons, for you are crunchy, and good
with ketchup.
@ IN SOA anoka.julianop.swdata.com.
hostmaster.julianop.swdata.com. (
2001110802 ; serial
28800 ; refresh
7200 ; retry
2419200 ; expire
86400 ; default_ttl
)
@ IN NS ns.julianop.swdata.com.
2 IN PTR anoka.julianop.swdata.com.
3 IN PTR sierra.julianop.swdata.com.
4 IN PTR monsta.julianop.swdata.com.
5 IN PTR pongo.julianop.swdata.com.
options {
directory "/var/named";
allow-query{
10.0.0.0/24;
localhost;
};
allow-recursion{
10.0.0.0 / 24;
localhost;
};
};
zone "." {
type hint;
file "named.ca";
};
zone "julianop.swdata.com"{
type master;
file "julianop.swdata.com";
notify no;
allow-query{
any;
};
};
zone "0.0.127.in-addr.arpa"{
type master;
file "named.local";
};
zone "0.0.10.in-addr.arpa"{
type master;
file "10.0.0";
notify no;
allow-query{
any;
};
};
;
; Zone file for julianop.swdata.com
;
; The full zone file
;
@ IN SOA anoka.julianop.swdata.com.
hostmaster.julianop.swdata.com. (
2001090800 ; serial
28800 ; refresh
7200 ; retry
2419200 ; expire
86400 ; default_ttl
)
;
@ IN NS ns
@ IN MX 10 mail.julianop.swdata.com.
;
anoka IN A 10.0.0.2
ns IN A 10.0.0.2
mail IN CNAME anoka
www IN CNAME anoka
ftp IN CNAME anoka
sierra IN A 10.0.0.3
monsta IN A 10.0.0.4
pongo IN A 10.0.0.5
Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com