LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-02-2012, 10:17 PM   #16
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221

Your files are in real mesh..so I am explaining only the lan part and not the wan part
or for better results follow the link which I have posted earlier in post #11

vi /etc/named.conf
Code:
options {
listen-on port 53 {127.0.0.1; 192.168.0.0/24; };
listen-on-v6 port 53 { none; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
query-source port 53
allow-query { localhost; 192.168.0.0/24; };

allw-transfer {localhost; 192.168.0.0/24; }; <-give sapce in above both red lines after semicolon

recursion yes;


vi /etc/named/pure.world.lan <---------------check the location as I believe it should be /var/named/ because there is no named directory in /etc/
Code:
$TTL 86400
@ IN SOA asd.pure.world. root.pure.world.(
2011071002 ;Serial  <---------change the serial key every time you make change
3600 ;Refresh
1800 ;Retry
604800 ;Expire
86400 ;Minimum TTL

)

IN NS asd.pure.world.
IN A 192.168.0.30           <----------remove this line
asd IN A 192.168.0.30
IN MX 10 asd.pure.world.
ftp IN CNAME ftp.pure.world
~
~
~
~
~
~
~
"/var/named/pure.world.lan" 16L, 503C

vi /etc/named/0.168.192.db <---------------check the location
Code:
$TTL 86400
@ IN SOA asd.pure.world. root.pure.world. (
2011071001 ;Serial
3600 ;Refresh
1800 ;Retry
604800 ;Expire
86400 ;Minimum TTL

)


IN NS asd.pure.world.
30 IN PTR asd.pure.world.
~

~
~
~
"/var/named/0.168.192.db" 20L, 410C


as you miss this part every time so please notice this
take a backup of current resolv.conf

Code:
#cp /etc/resolv.conf  /resolv.conf.orig
Code:
#vi /etc/resolv.conf
(remove everyline and add this)
nameserver 192.168.0.30
 
Old 01-03-2012, 12:57 AM   #17
Asila
LQ Newbie
 
Registered: Dec 2011
Posts: 23

Original Poster
Rep: Reputation: Disabled
hi
sir I had change the lines U told me to do.

But It still not work
Quote:
; <<>>DiG 9.7.3-P3-Readhat-9.7.3-2.el6_1.P3.3<<>> -x192.168.0.30
;; global options: +cmd
;; connection timed out; no server could be reaches
 
Old 01-03-2012, 02:11 AM   #18
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
post your resolv.conf
 
Old 01-03-2012, 03:44 AM   #19
Asila
LQ Newbie
 
Registered: Dec 2011
Posts: 23

Original Poster
Rep: Reputation: Disabled
this is resolv.conf

Quote:
#Generated by NetworkManager
search pure.world
maneserver 192.168.0.30
~
 
Old 01-03-2012, 04:01 AM   #20
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by Asila View Post
this is resolv.conf
#Generated by NetworkManager
search pure.world
maneserver 192.168.0.30 <----check the spelling of nameserver
show the output of

Code:
#nslookup asd.pure.world
and your zone files including named.conf and named.rfc1912.zones
 
Old 01-03-2012, 04:47 AM   #21
Asila
LQ Newbie
 
Registered: Dec 2011
Posts: 23

Original Poster
Rep: Reputation: Disabled
resolv.conf

Quote:
#Generated by NetworkManager
search pure.world
nameserver 192.168.0.30
#nslookup asd.pure.world
Quote:
;;connection timed out; no server could be reached
 
Old 01-03-2012, 04:52 AM   #22
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
First thing you should read the complete post and then reply.

I have a feeling you are not considering what ever I post here. As every time I have to repeat my words twice.
 
Old 01-03-2012, 04:57 AM   #23
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
In this whole messy process at post #13
Mr. deep27ak wrote you the steps:
Quote:
Originally Posted by deep27ak View Post
then restart the service
Code:
#service named restart
try this command and show me the output
Code:
#nslookup asd.pure.world.
wrote you to start/restart the Named service (because it resolves IP's and names)

Have you ever done it ?
Not running the Named service means resolving not working -> as in your case.

Last edited by lithos; 01-03-2012 at 04:58 AM.
 
Old 01-03-2012, 01:00 PM   #24
Asila
LQ Newbie
 
Registered: Dec 2011
Posts: 23

Original Poster
Rep: Reputation: Disabled
I hve read the complete post. as will I follw all the staps on this link
dns-configuration-in-rhel-forward-and-reverse-zone

but I still have error and the DNS does not work

sorry sir
 
Old 01-03-2012, 09:39 PM   #25
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by Asila View Post
I hve read the complete post. as will I follw all the staps on this link
dns-configuration-in-rhel-forward-and-reverse-zone

but I still have error and the DNS does not work

sorry sir

I asked you something?
Quote:
Originally Posted by deep27ak View Post
show the output of

and your zone files including named.conf and named.rfc1912.zones
 
Old 01-04-2012, 12:04 AM   #26
Asila
LQ Newbie
 
Registered: Dec 2011
Posts: 23

Original Poster
Rep: Reputation: Disabled
named.conf
Quote:
//
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//


options {
listen-on port 53 {127.0.0.1; 192.168.0.0/24; };
listen-on-v6 port 53 { none; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
query-source port 53
allow-query { localhost; 192.168.0.0/24;};

allw-transfer {localhost; 192.168.0.0/24;};

recursion yes;

recursion yes;
dnssec-enable yes;
dnssec-validation yes;
dnssec-lookaside auto;

/*Path to ISO DLV key*/
bindkeys-file "/etc/named.iscdlv.key";
};
logging {
channel default_debud {
file "data/named.run";
severity dynamic;
};
};
view localhost_resolver {
mathch-clients { localhost; 192.168.0.10; };
match-destination { localhost; 192.168.0.10; };
recursion yes;
include "/etc/named.rfc1912.zones";
};
view "internal" {
match-clients {
localhost;
192.168.0.0/24;
};




zone "." IN {
type hint;
file "named.ca";
};
zone "pure.world" IN {
type master;
file "pure.world.lan";
allow-update { none; };
};
zone "0.168.192.in-addr.arpa" IN {
type master;
file "0.168.192.db";
allow-update { none; };
};
include "/etc/named.rfc1912.zones";
};

};

view "external" {
match-clients { any; };
allow-query { any; };
recursion on;
zone "pure.world" {
type master;
file "pure.world.wan";
allow-update { none; };
};
zone "80.0.168.192.in-addr.arpa" IN {
type master;
file "80.0.168.192.db";
allow-update { none; };
};

};



 
Old 01-04-2012, 12:35 AM   #27
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
use this in your named.conf
(remove everything and paste this)
Code:
//
// named.caching-nameserver.conf
//
// Provided by Red Hat caching-nameserver package to configure the
// ISC BIND named(8) DNS server as a caching only nameserver
// (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
// DO NOT EDIT THIS FILE - use system-config-bind or an editor
// to create named.conf - edits to this file will be lost on
// caching-nameserver package upgrade.
//
options {
        listen-on port 53 { 127.0.0.1; 192.168.0.80; };
        listen-on-v6 port 53 { ::1; };
        directory       "/var/named";
        dump-file       "/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
        memstatistics-file "/var/named/data/named_mem_stats.txt";
        query-source    port 53;
        query-source-v6 port 53;
        allow-query     { localhost; 192.168.0.0/24; };
};
logging {
        channel default_debug {
                file "data/named.run";
                severity dynamic;
        };
};
view localhost_resolver {
        match-clients      { localhost; 192.168.0.0/24; };
        match-destinations { localhost; 192.168.0.0/24; };
        recursion yes;
        include "/etc/named.rfc1912.zones";
};

#vi named.rfc1912.zones
Code:
(Make sure these lines are their in this file)
zone "pure.world" IN {
type master;
file "pure.world.lan";
allow-update { none; };
};
zone "0.168.192.in-addr.arpa" IN {
type master;
file "0.168.192.db";
allow-update { none; };
};
include "/etc/named.rfc1912.zones";
};

};

view "external" {
match-clients { any; };
allow-query { any; };
recursion on;
zone "pure.world" {
type master;
file "pure.world.wan";
allow-update { none; };
};
zone "80.0.168.192.in-addr.arpa" IN {
type master;
file "80.0.168.192.db";
allow-update { none; };
};

};


also make sure that your firewall is not blocking the DNS

Last edited by deep27ak; 01-04-2012 at 06:29 AM.
 
Old 04-27-2012, 11:48 PM   #28
h.haider
LQ Newbie
 
Registered: Apr 2011
Location: Pakistan
Distribution: Centos, Fedora, Redhat, ubuntu, debian
Posts: 18

Rep: Reputation: 0
Asila.....!!

Follow This Awesome Article/Video Related to DNS(BIND) on centos 6.2 that's works for me...
http://broexperts.com/2012/03/linux-...on-centos-6-2/
 
  


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
help needed to setup a DNS server can anyone say how to configure a DNS server subha Linux - Networking 4 04-27-2012 11:50 PM
CentOS Server - How to configure DNS redh Linux - Server 4 11-02-2010 01:41 AM
[SOLVED] How to configure DNS master server on centos shridhar005 Linux - Newbie 3 10-31-2010 08:00 PM
how to configure another dns server to combine use with primary current dns server. hocheetiong Linux - Newbie 1 05-29-2008 06:57 PM
problom with X server and Vmware TheShadow Linux - Newbie 0 09-08-2003 03:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:18 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