subdomain for external hosted domain

David Botham dns at botham.net
Tue Oct 1 16:10:01 UTC 2002




> -----Original Message-----
> From: bind-users-bounce at isc.org [mailto:bind-users-bounce at isc.org] On
> Behalf Of Hartmut Berghoff
> Sent: Monday, September 30, 2002 1:12 PM
> To: comp-protocols-dns-bind at isc.org
> Subject: subdomain for external hosted domain
> 
> 
> Hello all,
> 
> I am newbi in bind config. But I succeded to get it running in some
> unwanted
> way. But of course I want it correctly configured.
> 
> My problem
> 
> I have a domain berghoff-familie.de hosted by an external webhoster,
like
> many people do. Of course it's only a shared server, no own
DNS-Servers.

If the parent domain is hosted elsewhere, you should not load it as a
master locally...


> 
> I use a router for internet access.
> 
> Now I installed new version SUSE-Linux 8.0 and some software required
DNS
> to
> be running.
> 
> I choosed a subdomain of berghoff-familie.de for my home network.
> and a network-address 192.168.x.x which of course  is different from
the
> IP
> I receive when connecting to the internet.
> 
> Hostname is linux.sub.berghoff-familie.de
> 
> In bind I only need the subdomain, but it requires the masterdomain.
To
> get
> it running, I configured

No, you do not need to load the parent domain (you called it
masterdomain) to load a sub domain.  However, the parent domain MUST
delegate the sub domain to you.  Therefore, in the parent zone file you
would need this:

; Delegate sub domain by specifying an NS RR for it:
sub.berghoff-familie.de.	NS	linux.sub.berghoff-familie.de.

; Provide Glue RR to tell everyone the IP of the NS in this domain:
.sub.berghoff-familie.de.	A	<external IP of name server>



more ...
> 
> bind.conf
> 
> zone {"berghoff-familie.de";
> type master;
> file "berghoff-familie.db"
> };

You do not need to load the master, drop it...

> 
> zone {"sub.berghoff-familie.de";
> type master;
> file "sub.berghoff-familie.db"
> };

This zone specification is what you do need, keep it...


> 
> ---------
> 
> berghoff-familie.db
> 
> $ TTL 2D
> @ 		IN SOA 'hostname'. root (...
> @ 		IN NS  'hostname'.
> 'hostname'. 	IN A 192.168.1.1
> ---------------

Lose this zone file, it is not needed, the zone is loaded by someone
else...



> 
> sub.berghoff-familie.db
> 
> $ TTL 2D
> @ 		IN SOA 'hostname'. root (...
> @ 		IN NS  'hostname'.
> 'hostname'. 	IN A 192.168.1.1
> 
> other hosts
> 
> 
> different   IN CNAME
> ---------------
> 
> 
> This works with nslookup internel addresses of my subdomain.
> 
> Of course I wan't to get it running with namelookups externally too.
> i think, the subdomain config is ok, isn't it?
> 
> I would prefere to have something better for the master domain. Best
would
> be namesservers and SOA which have been assigened to my domain by my
> webhoster.
> Perhaps Only solution is to replace the LINUX-Hostname in the
> berghoff-familie.db-file with the router I am using ( but tis router
is a
> chaching only standalone)?
> 
> Is there any site, providing example configs, preferrebly for above
given
> problem?
> 
> Other help is welcome of course.
> 
> 
> 2nd question
> 
> To get it resolving external names including the
www.berghoff-familie.de
> (which is at the providers site) and avoiding too frequent dial in,
what
> can
> I do?
> 
> When setting the forwarder to my routers IP, every nslookup results in
a
> internetconnection. Would it be sufficient, to have an entry in the
> route.conf as default-route giving the router as gateway and adding a
2nd
> nameserver IP into resolc.conf, without a farwarder?
> 
> Hm. To experts these Questins may really look like newbi's. But
reading my
> available books didn't help me to answer these questions.
> 
> Thanks for anny hints.
> Hartmut




More information about the bind-users mailing list