i hate dns... please help if u know this stuff

i hate dns... please help if u know this stuff

Post by Hetma » Fri, 05 Jul 2002 15:38:28



i've been trying to get dns going for over 3 weeks now... still nothing... i even jacked my friends copy of oreilly's dns book but i must be braindead b/c it still wont work.
i want the domain to point to my ip, and run apache, ftp, whatever...

ok, here we go, assume the following:
my domain is ex: blah.com
my static ip is ex: 1.2.3.4
there are 2 machines behind a router.
192.168.1.101 is the linux box (eclipse)
192.168.1.100 is a winxp box (viper)

the linux box is obviously the one running bind.

i did my best to set up the damn thing using webmin.
here is my setup:

named.conf
=================
options {
directory "/etc";
pid-file "/var/run/named/named.pid";

Quote:};

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

Quote:};

zone "blah.com" {
type master;
file "/etc/blah.com.hosts";

Quote:};

zone "4.3.2.1.in-addr.arpa" {
type master;
file "/etc/1.2.3.4.rev";
Quote:};

===============

here is /etc/1.2.3.4.rev
==========================
$ttl 38400
4.3.2.1.in-addr.arpa. IN SOA ns1.blah.com. root.blah.com. (
1024792452
10800
3600
604800
38400 )
4.3.2.1.in-addr.arpa. IN NS ns1.blah.com.
100.1.168.192.in-addr.arpa. IN PTR viper.blah.com.
101.1.168.192.in-addr.arpa. IN PTR eclipse.blah.com.
==========

here is /etc/blah.com.hosts
=====================
$ttl 38400
blah.com. IN SOA ns1.blah.com. root.blah.com. (
1024792381
10800
3600
604800
38400 )
blah.com. IN NS ns1.blah.com.
www.blah.com. IN A 1.2.3.4
ftp.blah.com. IN A 1.2.3.4
viper.blah.com. IN A 192.168.1.100
eclipse.blah.com. IN A 192.168.1.101
===================

here is /etc/hosts:
127.0.0.1 localhost.localdomain localhost
192.168.1.100 viper.blah.com viper
192.168.1.101 eclipse.blah.com eclipse
====================

this is all i did, no other configs/settings were touched... btw do i need to change anything in /etc/hosts or /etc/resolv.conf?

thanks in advance to anyone who has the time/patience to help me out with this

 
 
 

i hate dns... please help if u know this stuff

Post by Yuan Li » Fri, 05 Jul 2002 17:06:23



> i've been trying to get dns going for over 3 weeks now... still nothing... i even jacked my friends copy of oreilly's dns book but i must be braindead b/c it still wont work.
> i want the domain to point to my ip, and run apache, ftp, whatever...

> ok, here we go, assume the following:
> my domain is ex: blah.com
> my static ip is ex: 1.2.3.4
> there are 2 machines behind a router.
> 192.168.1.101 is the linux box (eclipse)
> 192.168.1.100 is a winxp box (viper)

> the linux box is obviously the one running bind.

> i did my best to set up the damn thing using webmin.
> here is my setup:

> named.conf
> =================
> options {
> directory "/etc";
> pid-file "/var/run/named/named.pid";
> };

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

> zone "blah.com" {
> type master;
> file "/etc/blah.com.hosts";
> };

> zone "4.3.2.1.in-addr.arpa" {
> type master;
> file "/etc/1.2.3.4.rev";
> };
> ===============

> here is /etc/1.2.3.4.rev
> ==========================
> $ttl 38400
> 4.3.2.1.in-addr.arpa. IN SOA ns1.blah.com. root.blah.com. (
> 1024792452
> 10800
> 3600
> 604800
> 38400 )
> 4.3.2.1.in-addr.arpa. IN NS ns1.blah.com.
> 100.1.168.192.in-addr.arpa. IN PTR viper.blah.com.
> 101.1.168.192.in-addr.arpa. IN PTR eclipse.blah.com.
> ==========

> here is /etc/blah.com.hosts
> =====================
> $ttl 38400
> blah.com. IN SOA ns1.blah.com. root.blah.com. (
> 1024792381
> 10800
> 3600
> 604800
> 38400 )
> blah.com. IN NS ns1.blah.com.
> www.blah.com. IN A 1.2.3.4
> ftp.blah.com. IN A 1.2.3.4
> viper.blah.com. IN A 192.168.1.100
> eclipse.blah.com. IN A 192.168.1.101
> ===================

> here is /etc/hosts:
> 127.0.0.1 localhost.localdomain localhost
> 192.168.1.100 viper.blah.com viper
> 192.168.1.101 eclipse.blah.com eclipse
> ====================

> this is all i did, no other configs/settings were touched... btw do i need to change anything in /etc/hosts or /etc/resolv.conf?

> thanks in advance to anyone who has the time/patience to help me out with this

You need to explain how it fails, what fails, etc.

 
 
 

i hate dns... please help if u know this stuff

Post by ?3?? ·ò1 » Fri, 05 Jul 2002 17:45:19


Quote:> named.conf
> =================
> options {
> directory "/etc";
> pid-file "/var/run/named/named.pid";
> };

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

> zone "blah.com" {
> type master;
> file "/etc/blah.com.hosts";
> };

> zone "4.3.2.1.in-addr.arpa" {
> type master;
> file "/etc/1.2.3.4.rev";
> };
> ===============

> here is /etc/1.2.3.4.rev
> ==========================
> $ttl 38400
> 4.3.2.1.in-addr.arpa. IN SOA ns1.blah.com. root.blah.com. (
> 1024792452
> 10800
> 3600
> 604800
> 38400 )
> 4.3.2.1.in-addr.arpa. IN NS ns1.blah.com.
> 100.1.168.192.in-addr.arpa. IN PTR viper.blah.com.
> 101.1.168.192.in-addr.arpa. IN PTR eclipse.blah.com.
> ==========

Your named.conf and *.rev seem incorrect.
*.1.168.192.in-addr.arpa are not subdomain of 4.3.2.1.in-addr.arpa.

named.conf
=================
options {
directory "/etc";
pid-file "/var/run/named/named.pid";

Quote:};

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

Quote:};

zone "blah.com" {
type master;
file "/etc/blah.com.hosts";

Quote:};

zone "1.168.192.in-addr.arpa" {
type master;
file "/etc/192.168.1.rev";
Quote:};

===============

/etc/192.168.1.rev
==========================
$ttl 38400
1.168.192.in-addr.arpa. IN SOA ns1.blah.com. root.blah.com. (
1024792452
10800
3600
604800
38400 )
1.168.192.in-addr.arpa. IN NS ns1.blah.com.
100.1.168.192.in-addr.arpa. IN PTR viper.blah.com.
101.1.168.192.in-addr.arpa. IN PTR eclipse.blah.com.
==========

 
 
 

i hate dns... please help if u know this stuff

Post by William Par » Fri, 05 Jul 2002 21:19:19



> i've been trying to get dns going for over 3 weeks now... still
> nothing... i even jacked my friends copy of oreilly's dns book but i must
> be braindead b/c it still wont work.  i want the domain to point to my
> ip, and run apache, ftp, whatever...

> ok, here we go, assume the following:
> my domain is ex: blah.com
> my static ip is ex: 1.2.3.4
> there are 2 machines behind a router.
> 192.168.1.101 is the linux box (eclipse)
> 192.168.1.100 is a winxp box (viper)

> the linux box is obviously the one running bind.

> i did my best to set up the damn thing using webmin.
> here is my setup:

> named.conf
> =================
> zone "4.3.2.1.in-addr.arpa" { type master; file "/etc/1.2.3.4.rev"; };

Get rid of this.  Your IP is owned by your ISP, and they'll do the
reverse-mapping.  You'll need '1.168.192.in-addr.arpa' instead with

            NS          ns1.blah.com.
    100     PTR         viper.blah.com.
    101     PTR         eclipse.blah.com.      

Quote:> here is /etc/blah.com.hosts
> =====================
> $ttl 38400
> blah.com. IN SOA ns1.blah.com. root.blah.com. (
> 1024792381
> 10800
> 3600
> 604800
> 38400 )
> blah.com. IN NS ns1.blah.com.
> www.blah.com. IN A 1.2.3.4
> ftp.blah.com. IN A 1.2.3.4
> viper.blah.com. IN A 192.168.1.100
> eclipse.blah.com. IN A 192.168.1.101
> ===================

Too much typing...  try

                NS      ns1
    www         A       1.2.3.4
    ftp         A       1.2.3.4
    viper       A       192.168.1.100
    eclipse     A       192.168.1.101

By the way, how would you resolve 'ns1' ?

--

8-CPU Cluster, Hosting, NAS, Linux, LaTeX, python, vim, mutt, tin