Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
//
// 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;};
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; };
};
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.