Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
DNS (Bind) driving me nuts!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Diezel
l33t
l33t


Joined: 04 Feb 2003
Posts: 600
Location: Karjaa, Finland

PostPosted: Tue Jul 13, 2004 6:02 am    Post subject: DNS (Bind) driving me nuts! Reply with quote

I really feel stupid, I've been playing with networks and linux for nearly 2 years now and I've been using dyndns for my domain.
Finally as my finance got better I decided to buy me a domain, nixadmins.net.
Now i have 5 static IP:s and I have 1 DNS running bind(Debian). The second ns is with the company I bought the domain name from.
Now I can't get this to work at all. I would post my named.conf and the db files but I'm at work, sorry, I'll post them in a few hours.
I've been browsing the forums for a few hours on DNS problems and can't find anything but nice tools wich don't help me, because I seem to be to stupid to read the info ;)
Anyone who has some knowledge on running DNS servers PLEASE give me a hand here and help me get that AHAAAA feeling.
dnsstuff.com seems to be a nice tool and
dnsreport dor my domain
reports many "fails".
Thanks to anyone helping to resolv this.

// Diezel
_________________
A bus station is where a bus stops, a train station is where a train stops. On
my desk I have a work station..
Nixadmins.net
FLUG member 473
Back to top
View user's profile Send private message
nobspangle
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1318
Location: Manchester, UK

PostPosted: Tue Jul 13, 2004 7:16 am    Post subject: Reply with quote

bind is actually much easier than it looks, I found the important thing was making sure you got the PID file right, otherwise it won't start.

This is the best guide I have found, it's not 100% complete but it's very easy to follow and goes into plenty of detail.
http://www.zytrax.com/books/dns/
Back to top
View user's profile Send private message
Diezel
l33t
l33t


Joined: 04 Feb 2003
Posts: 600
Location: Karjaa, Finland

PostPosted: Tue Jul 13, 2004 7:31 am    Post subject: Reply with quote

Bind does start and it works fine as I use the same server as my cache server, but for some reason I cant access anything from another network. For example at work if I type http://thor.nixadmins.net I can't access it. dnsstuff.com seems to be able to ping it but I can't reach it.
I'm a little frustrated here.
_________________
A bus station is where a bus stops, a train station is where a train stops. On
my desk I have a work station..
Nixadmins.net
FLUG member 473
Back to top
View user's profile Send private message
Diezel
l33t
l33t


Joined: 04 Feb 2003
Posts: 600
Location: Karjaa, Finland

PostPosted: Wed Jul 14, 2004 9:47 am    Post subject: Reply with quote

Well I've been at it and I still seem to have issues with this. I am doing something wrong, that much I know. But I don't have a clue where the error is.
Someone with Bind experience please take a look at the configuration files.
/etc/bind/db.nixadmins
Code:

$TTL 3D
@      IN   SOA   .nixadmins.net. hostmaster.nixadmins.net. (
            200407133      ; Serial
            2H         ; Refresh
            2H         ; Retry
            4W         ; Expire
            1D)         ; Minimum TTL
;
         NS   dns1         ;
         NS   ns2.planeetta.net.   ;
         MX   10 mail.nixadmins.net.   ; Primary Mail EX
         TXT   "nixAdminsNET anything with *NIX"
;
localhost      A   127.0.0.1
dns1         A   194.215.74.171
         MX   10 mail
nixadmins.net.      A   194.215.74.170
         TXT   "Main server"
thor         CNAME   nixadmins.net.
www         A   194.215.74.172
         TXT   "nixAdmins webserver"
mail         A   194.215.74.173
         TXT   "mailserver"
tilitalli      A   194.215.74.174
         TXT   "TiliTalli project server"


/etc/bind/named.conf

Code:


options {
   directory "/var/cache/bind";

   // If there is a firewall between you and nameservers you want
   // to talk to, you might need to uncomment the query-source
   // directive below.  Previous versions of BIND always asked
   // questions using port 53, but BIND 8.1 and later use an unprivileged
   // port by default.

   // query-source address * port 53;

   // If your ISP provided one or more IP addresses for stable
   // nameservers, you probably want to use them as forwarders. 
   // Uncomment the following block, and insert the addresses replacing
   // the all-0's placeholder.

   forwarders {
       194.137.58.2;
      194.137.58.3;
   };

   allow-recursion { 194.215.74.170; localhost; 194.100.208.170; };

   //auth-nxdomain no;    # conform to RFC1035

};

// prime the server with knowledge of the root servers
zone "." {
   type hint;
   file "/etc/bind/db.root";
};

// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912

zone "localhost" {
   type master;
   file "/etc/bind/db.local";
};

zone "127.in-addr.arpa" {
   type master;
   file "/etc/bind/db.127";
};

zone "0.in-addr.arpa" {
   type master;
   file "/etc/bind/db.0";
};

zone "255.in-addr.arpa" {
   type master;
   file "/etc/bind/db.255";
};

// add entries for other zones below here

// nixadmins.net mail Zone
zone "nixadmins.net" {
   allow-transfer { localhost; };
   allow-query { any; };
   type master;
   file "/etc/bind/db.nixadmins";
};

// nixadmins.net reverse Zone
zone "74.215.194.in-addr.arpa" {
   allow-transfer { localhost; };
   allow-query { any; };
   type master;
   file"/etc/bind/db.192.215.74";
};


If you find anything please notify me.

Thanks,

//Diezel
_________________
A bus station is where a bus stops, a train station is where a train stops. On
my desk I have a work station..
Nixadmins.net
FLUG member 473
Back to top
View user's profile Send private message
Diezel
l33t
l33t


Joined: 04 Feb 2003
Posts: 600
Location: Karjaa, Finland

PostPosted: Wed Jul 14, 2004 11:37 am    Post subject: Reply with quote

The DNSReport tool seems to resolv everything now. I still only have 1 MX record and I'm waiting on my registars DNS to update itself but otherwise everything seems fine. Also there is no PTR records but this should work already, right?
The DNSReport
HERE
_________________
A bus station is where a bus stops, a train station is where a train stops. On
my desk I have a work station..
Nixadmins.net
FLUG member 473
Back to top
View user's profile Send private message
Diezel
l33t
l33t


Joined: 04 Feb 2003
Posts: 600
Location: Karjaa, Finland

PostPosted: Wed Jul 14, 2004 11:51 am    Post subject: Reply with quote

I seem to have everything ok now since netcraft is able to resolv my hosts but my ISP:s DNS does not yet, I guess it's just a matter of time now.
_________________
A bus station is where a bus stops, a train station is where a train stops. On
my desk I have a work station..
Nixadmins.net
FLUG member 473
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum