LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 07-21-2011, 05:33 PM   #1
Amerika
LQ Newbie
 
Registered: Dec 2010
Posts: 18

Rep: Reputation: 0
Bind 9 on ubuntu with occasional dns problems


right now i have an name server on 83.99.211.134 server
called ns.coom.lv
But i keep having a problem that occasionaly my subdomains or homepages just dont work. If i wright www.coom.lv in one time it works but after hour or any random it doesnt but i cant predict when that happens. Any ideas why this is happening and how to change that it doesnt happen?

Added the configuration files in order to get rid of flawes.

File 0.168.192.in-addr.arpa
Code:
$TTL 1D
@       IN      SOA     ns.brfconcept.lv. admin.brfconcept.lv. (
2051041121;
28800;
3600;
604800;
38400;
);


                IN      NS      ns.brfconcept.lv.
                IN      NS      ns.coom.lv.
106             IN      PTR     ns.brfconcept.lv.
115             IN      PTR     germanyxp.brfconcept.lv.
1               IN      PTR     gw.brfconcept.lv.
134             IN      PTR     testing.brfconcept.lv.
134             IN      PTR     War3.coom.lv.
106             IN      PTR     ns.coom.lv.
134             IN      PTR     www.coom.lv.
134             IN      PTR     Pub.coom.lv.
197             IN      PTR     kz.coom.lv.
134             IN      PTR     coom.lv.
named.conf.local file
Code:
//
// Do any local configuration here
//

// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";

zone "brfconcept.lv"
{
        type master;
        file "/etc/bind/zones/brfconcept.lv.db";
};

zone "coom.lv"
{
        type master;
        file "/etc/bind/zones/coom.lv.db";
};

zone "0.168.192.in-addr.arpa"
{
        type master;
        file "/etc/bind/0.168.192.in-addr.arpa";
};
coom.lv.db file
Code:
$TTL 1D
@ IN SOA ns.coom.lv. admin.coom.lv. (
2011006140;
28800;
3600;
604800;
38400;
);

coom.lv.                IN      NS      ns.coom.lv.
ns                      IN      A       192.168.1.106
www                     IN      A       83.99.211.134
Pub                     IN      A       83.99.211.134
War3                    IN      A       83.99.211.134
kz                      IN      A       159.148.77.197
@                       IN      A       83.99.211.134

For more detailed info ask!
 
Old 07-22-2011, 02:13 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
; <<>> DiG 9.8.0-P4 <<>> ns coom.lv
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 57220
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; QUESTION SECTION:
;coom.lv. IN NS

;; ANSWER SECTION:
coom.lv. 85942 IN NS ns.coom.lv.

;; ADDITIONAL SECTION:
ns.coom.lv. 86042 IN A 192.168.1.106
You are using a private IP (192.168.1.106) for your name server. You should change it to your public one (83.99.211.134) if you want your domain to be reachable from outside. Right now the public IP is still cached by the upstream nameservers, so your domain is resolving correctly, but when TTL expires it won't.
So change it accordingly, increase serial and reload bind.

Regards
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with split DNS (bind) on Ubuntu bax Linux - Server 1 11-09-2010 12:21 AM
Ubuntu 8.04 ... DNS ISSUE (BIND) joseph Linux - General 2 10-12-2010 02:11 AM
LXer: DNS server Setup using bind in Ubuntu LXer Syndicated Linux News 0 05-03-2007 12:16 AM
BIND DNS resolution problems dougz Linux - Networking 3 01-02-2006 02:31 PM
BIND and DNS Server Problems sicasal Linux - Software 8 07-31-2003 07:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 11:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration