LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-27-2011, 05:39 AM   #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

Quote:
Originally Posted by SarahGurung View Post
wow thanks,i did as u said now....what step should i be taking now?

And Mr.Deepak our lan uses private ip in the range of 192.168.11.X(dhcp)....so when i used the static ip i used 192.168.0.1 but since it isnt in our lan it isnt connecting to the internet or is something wrong with my system?
Now your network is configure for the range of 192.168.11.x then how will you get internet on 192.168.0.x?
contact your admin and get a free ip in the range of 192.168.11.x
 
Old 10-27-2011, 05:45 AM   #17
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Original Poster
Rep: Reputation: Disabled
oh k k...haha...i am really a fool it seems...

ok i did that,now what should i do?and please don't mind..
 
Old 10-27-2011, 05:46 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
Quote:
Originally Posted by SarahGurung View Post
oh k k...haha...i am really a fool it seems...

ok i did that,now what should i do?and please don't mind..
http://www.linuxquestions.org/questi...server-906142/

follow this..every step is mentioned
 
Old 10-27-2011, 06:26 AM   #19
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Original Poster
Rep: Reputation: Disabled
well thanks a lot Mr.Deepak...ll never forget ur help....thanksonce again..


Now after doing all these how to i know whether my system is acting as a dns server or not?and can i configure mail server in it as well?
 
Old 10-27-2011, 06:32 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 SarahGurung View Post
well thanks a lot Mr.Deepak...ll never forget ur help....thanksonce again..


Now after doing all these how to i know whether my system is acting as a dns server or not?and can i configure mail server in it as well?
Code:
#nslookup hostname
check whether you are getting a proper reply from your DNS
Code:
#dig -x (yourip)
check if your getting answer from your server
 
Old 10-27-2011, 06:54 AM   #21
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Original Poster
Rep: Reputation: Disabled
wow thanks once again..

now if i want it to do forward and reverse mapping for a a particular website then i can add that website isnt it?or will it not work?
 
Old 10-27-2011, 07:04 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
Quote:
Originally Posted by SarahGurung View Post
wow thanks once again..

now if i want it to do forward and reverse mapping for a a particular website then i can add that website isnt it?or will it not work?
by adding a website do you mean registering your domain?

Code:
#nslookup hostname
(this is to check forward mapping)
Code:
#dig -x ip
(for reverse mapping)
I would like to see the output of these commands

Last edited by deep27ak; 10-27-2011 at 07:05 AM.
 
Old 10-27-2011, 10:13 PM   #23
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Original Poster
Rep: Reputation: Disabled
well i meant hosting a website/domain..
 
Old 10-27-2011, 11:05 PM   #24
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 SarahGurung View Post
well i meant hosting a website/domain..
for hosting a website you need apache server

and if everything is working fine I would suggest you to mark the thread as solved
 
Old 10-27-2011, 11:35 PM   #25
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Original Poster
Rep: Reputation: Disabled
well in named.rfc1912.zones,i have it as given below so should i delete everythng given below and do as u said or keep that first one..

zone "." IN {
type hint;
file "named.ca";
};

zone "localdomain" IN {
type master;
file "localdomain.zone";
allow-update { none; };
};

zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};

zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};

zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN
{
type master;
file "named.ip6.local";
allow-update { none; };
};

zone "255.in-addr.arpa" IN {
type master;
file "named.broadcast";
allow-update { none; };
};

zone "0.in-addr.arpa" IN {
type master;
file "named.zero";
allow-update { none; };
};


Please don't mind and ur help would be highly appreciated..
 
Old 10-27-2011, 11:48 PM   #26
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
I am surprised to see you are still stucked at named.rfc1912.zones

I thought you might have configured DNS

No need to erase any thing just make a new entry
 
Old 10-28-2011, 12:27 AM   #27
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Original Poster
Rep: Reputation: Disabled
well i couldnt do it yesterday,didnt gettime thats y...but your guidance is helping me a lot..

In example.com.zone we should it shows as:
$TTL 86400
@ IN SOA @ root (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum

IN NS @
IN A 127.0.0.1
IN AAAA ::1

and u have asked me to do as :
#vi example.com.zone
$TTL 86400
@ IN SOA server.example.com. root.estuate.com. (
52 ; serial
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum

IN NS server.example.com.
IN MX 10 server.example.com.

server IN A 192.168.0.233
www IN A 192.168.0.233
ftp IN A 192.168.0.233
mail IN CNAME mail.example.com

so in that should it be sarh.example.com or as above?n can u tell me what is that 10 for and in should i remove that loopback address also?

Please don't mind me asking u again n again..
 
Old 10-28-2011, 12:47 AM   #28
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Original Poster
Rep: Reputation: Disabled
well Mr.Deepak when i did service named restart finally it gave the following error:

Error in named configuration:
/etc/named.rfc1912.zones:10: zone '.': already exists previous definition: /etc/named.root.hints:12


what could be the possible reason?
 
Old 10-28-2011, 01:20 AM   #29
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 SarahGurung View Post
well Mr.Deepak when i did service named restart finally it gave the following error:

Error in named configuration:
/etc/named.rfc1912.zones:10: zone '.': already exists previous definition: /etc/named.root.hints:12


what could be the possible reason?
I would like to have a look at your named.conf and named.rfc1912.zones

and please use "code" i.e. "#" available at the editor of linuxquestions
it makes easier to understand
 
Old 10-28-2011, 01:30 AM   #30
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Original Poster
Rep: Reputation: Disabled
this is the output of named.conf:

options {
listen-on port 53 { 127.0.0.1;192.168.0.1; };
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";

// Those options should be used carefully because they disable port
// randomization
// query-source port 53;
// query-source-v6 port 53;

allow-query { localhost; 192.168.0.0/24;};
allow-query-cache { 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";
};OUTPUT OF named.rfc1912.zones:

// named.rfc1912.zones:
//
// Provided by Red Hat caching-nameserver package
//
// ISC BIND named zone configuration for zones recommended by
// RFC 1912 section 4.1 : localhost TLDs and address zones
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
zone "." IN {
type hint;
file "named.ca";
};

zone "localdomain" IN {
type master;
file "localdomain.zone";
allow-update { none; };
};

zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};

zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};

zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN
{
type master;
file "named.ip6.local";
allow-update { none; };
};

zone "255.in-addr.arpa" IN {
type master;
file "named.broadcast";
allow-update { none; };
};

zone "0.in-addr.arpa" IN {
type master;
file "named.zero";
allow-update { none; };
};

zone "example.com" IN {
type master;
file "example.com.zone";
allow-update {none;};
};

zone "0.168.192.in-addr.arpa" IN {
type master;
file "192.168.0.zone";
allow-update{none;};
};

Last edited by SarahGurung; 10-28-2011 at 01:32 AM.
 
  


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
[SOLVED] [SAMBA] How to track windows user access , create files /modify files on linux SMB efciem Linux - Server 2 05-16-2010 08:45 AM
Synchronizing DNS Servers - automatically create new zones assi Linux - Networking 3 03-21-2009 10:58 AM
bind9 zones config files help lucastic Linux - Server 1 09-25-2007 04:24 PM
Samba: "homes" share, cannot create directories, can create files Herg Linux - Software 1 09-14-2006 08:48 AM
Linux, Create Dirs=no, Create files=yes. Possible? tisource Linux - General 4 01-12-2004 10:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:01 AM.

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