Newbie question DNS access from the outside, real domain

Forums @ Existanze forums at existanze.com
Fri Mar 31 12:34:27 UTC 2006


Hello all,
 

I am new to this list and to world of DNS servers outside a local intranet.
In the past I have successfully set up a DNS, specifically BIND 8 in a
chroot environment which acted as the name server for my local network
composed only of 8 computers. I sort of though I was ready for big bad
outside world, but no not yet. So let me get on with the problem, I will try
and analyze it to the best of my knowledge:

 

1.My reseach Material

2. Problem

3. Conclussion

4. Conf files

 

 

 

 

 

 

1. My research Material

-----------------------------------------------------------

 

Sites researched:

DNS Howto

http://langfeldt.net/DNS-HOWTO/BIND-9/

 

Real DNS Howto

http://www.tldp.org/HOWTO/DNS-HOWTO-7.html

 

Forums visited 

http://forums.dnsstuff.com/

 

Books Read:

The Concise Guide to DNS and BIND

DNS & BIND Cookbook

----------------------------------------------------------

 

 

2. Problem

--------------

 

I have two boxes one acting as a webserver and mailserver, and a second
which I would like to have for BIND, I have set up bind successfully, I can
add zones for my intranet which is defined by "existanze.lan" and
"192.168.1.0", I have also setup the localhost, and apparently is working
fine, because all the machines are pointing to that name server, and they
get resolved accordinly, using name.existanze.lan. Also I have managed to
created the "caching name server" using the root.hints file, 

 

I have purchased a domain "existanze.gr" along with a DNS service package,
which allows me to add A,MX,CNAME and so on records to it. I am under the
assumption that if I create A records one for ns1.existanze.gr and one for
ns2.existanze.gr, and have them point to my static ip dns server, I would be
able to act as a DNS to the outside world, giving me the opportunity to
handle third party domains. IE. Asking them to point their domains to my
name servers ns1.existanze.gr and ns2.existanze.gr.

 

At the moment I am confused as to the correct setup, working with the
intranet there is no problem if something doesn't work, and It is an
environment I can test straight away. How do I test a correct setup using a
real domain name? 

 

In the real dns howto, he explains land5.com. In my case if I am not
misunderstood I will create my zones using ns1.existanze.gr. instead of
land5.com. At the end of this e-mail I have attached my configuration files
for my real domain.

 

Another confusing though is the following. I have only one static ip address
which comes into a linksys router. I have set up port forwarding for each of
the machines in my local network. 

 

Port 80:192.168.1.89 WWW

Port 53: 192.168.1.25 DNS

 

 

When someone queries my dns servers I would like to have an A record "www"
which will point to my webserver. Should I specify the intranet ip, or the
static isp ip. I assumed I had to set the static isp ip, so when someone
asks for www.existanze.gr <http://www.existanze.gr/> , they will be served
with the static ip, come back through port 80 and hit the web server. Is
this in any way correct? Furthermore, when I am all setup and I have a
client with the domain www.dummy.eee , I assume I will be able to add a zone
file for that domain, pointing it to my Webserver. This together with Apache
virtual host, I would be able to handle my own hosting infrastructure.

 

3: Conclussion

-----------------

 

I would like to thank anyone that took the time to read this, and I
apologize for my lack of knowledge, I am trying to learn. Could anyone show
me an example DNS config, and files for this type of setup?  Thank you.

 

 

4. Config Files

------------------

 

 

named.conf

---------------

 

options {

        directory "/var/named";

        dump-file "/var/named/data/cache_dump.db";

        statistics-file "/var/named/data/named_stats.txt";

};

 

zone "." {

        type hint;

        file "root.hints";

};

 

zone "0.0.127.in-addr.arpa"{

        type master;

        file "pz/127.0.0";

};

 

zone "ns1.existanze.gr"{

        type master;

        file "pz/ns1.existanze.gr";

};

 

zone "223.38.62.in-addr-arpa"{

            type master;

            file "pz/62.38.223";

};

 

 

pz/ns1.existanze.gr

---------------------

File Edit Options Buffers Tools Help

$TTL 3D

@       IN      SOA     ns1.existanze.gr. hostmaster.existanze.com.(

                        200603301 ;serial

                        8H      ;refresh

                        2H      ;retry

                        4W      ;expire

                        1D)     ;minimum

;

                NS      ns1.existanze.gr.

                TXT     "EXISTANZE Name Server"

;

localhost               A       127.0.0.1

ns1.existanze.gr.       A       62.38.223.129

www                     CNAME   ns1.existanze.gr.

 

 

pz/62.38.223

------------

$TTL 3D

@       IN      SOA     ns1.existanze.gr.  hostmaster.existanze.com. (

                        200603301 ; Serial, todays date + todays serial

                        8H      ; Refresh

                        2H      ; Retry

                        4W      ; Expire

                        1D)     ; Minimum TTL

                NS      ns1.existanze.gr.

129             PTR     ns1.existanze.gr.

129             PTR     www.existanze.gr.

 

 

 

Best Regards,

Fotis 





More information about the bind-users mailing list