LinuxQuestions.org
Help answer threads with 0 replies.
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, 06:39 AM   #16
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,194
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, 06: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, 06:46 AM   #18
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,194
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, 07: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, 07:32 AM   #20
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,194
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, 07: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, 08:04 AM   #22
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,194
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 08:05 AM.
 
Old 10-27-2011, 11:13 PM   #23
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Original Poster
Rep: Reputation: Disabled
well i meant hosting a website/domain..
 
Old 10-28-2011, 12:05 AM   #24
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,194
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-28-2011, 12:35 AM   #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-28-2011, 12:48 AM   #26
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,194
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, 01: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, 01: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, 02:20 AM   #29
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,194
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, 02: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 02:32 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 09:45 AM
Synchronizing DNS Servers - automatically create new zones assi Linux - Networking 3 03-21-2009 11:58 AM
bind9 zones config files help lucastic Linux - Server 1 09-25-2007 05:24 PM
Samba: "homes" share, cannot create directories, can create files Herg Linux - Software 1 09-14-2006 09:48 AM
Linux, Create Dirs=no, Create files=yes. Possible? tisource Linux - General 4 01-12-2004 11:05 PM


All times are GMT -5. The time now is 10:39 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration