LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-08-2003, 01:09 PM   #1
romel
Member
 
Registered: Sep 2003
Location: Bangladesh
Distribution: Debian
Posts: 102

Rep: Reputation: 15
DNS Configuration


I m a new user of Linux. I installed RedHat 7.3

I have total 3 PC ....One redhat 7.2 , one redhat 7.3 and other is redhat 8..installed...I am trying to configure DNS at redhat 7.3 at pc2

I edit /etc/hosts file as :-

# Do not remove the following line, or various programs
# that require network functionality will fail.
# 127.0.0.1 pc1.com pc1 localhost.localdomain localhost
192.168.0.1 pc1 pc1.com
192.168.0.2 pc2 pc2.com
192.168.0.3 pc3 pc3.com
192.168.0.2 dns2

Then I edit /etc/named.conf file as :-

## named.conf - configuration for bind
#
# Generated automatically by bindconf, alchemist et al.
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};

include "/etc/rndc.key";

options {
directory "/var/named/";
};


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

Then I create pc2.zone file at /var/named/pc2.zone as :-

@ IN SOA dns2.pc2.com root.pc2.com. (
1 ; Serial
10800 ; refresh
3600 ; retry
604800 ; expire
86400 ; minimum
)
IN NS dns2.pc2.com
IN A 192.168.0.2
IN MX 5 dns2.pc2.com
Dns1 IN A 192.168.0.1
Dns1 IN MX dns1.pc1.com
;

www IN CNAME dns2
proxy IN CNAME dns2
mail IN CNAME dns2
smtp IN CNAME dns2

Then I create pc2.rev file at /var/named/pc2.rev file as :-

IN SOA dns2.pc2.com root.pc2.com. (
1 ; Serial
10800 ; refresh
3600 ; retry
604800 ; expire
86400 ; minimum
)
@ IN NS dns2.pc2.com
1 IN PTR dns2.pc2.com
2 IN PTR dns1.pc1.com

I still have the file localhost.zone at /var/named as :-

$TTL 86400
@ IN SOA @ root.localhost (
1 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)


@ IN NS localhost.


@ IN A 127.0.0.1

I have named.local file also at /var/named as :-

$TTL 86400
@ IN SOA localhost. root.localhost. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS localhost.

1 IN PTR localhost.

and also another file named.ca at /var/named directory.

Now when I type nslookup the prompt come ..
when I type "server" it says...

Default server: 192.168.0.2
Address: 192.168.0.2#53

What things I have to do more to complete DNS configuration..

Please help me.....
 
Old 09-08-2003, 09:23 PM   #2
romel
Member
 
Registered: Sep 2003
Location: Bangladesh
Distribution: Debian
Posts: 102

Original Poster
Rep: Reputation: 15
I am sorry...If I write too much...
actually I am trying to configure DNS for couple of days....
Can anybody suggest me "step by step" configuration ...pls..
I really need it...
 
Old 09-08-2003, 09:46 PM   #3
joseph
Member
 
Registered: Jun 2003
Location: Batam
Distribution: Ubuntu 10 And Linux Mint
Posts: 414

Rep: Reputation: 30
Try this site http://www.tldp.org search for dns configuration.

It contains all stuff about linux, It is really a nice site to find an information, what ever it is, TLDP have it.
 
Old 09-09-2003, 12:54 AM   #4
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
I'm trying to do the exact same thing. Have you tried typing:

"nslookup pc2.com"

What does it say? Does it spit out SERVFAIL? That's what mine does.

-twantrd
 
Old 09-22-2003, 09:45 AM   #5
romel
Member
 
Registered: Sep 2003
Location: Bangladesh
Distribution: Debian
Posts: 102

Original Poster
Rep: Reputation: 15
When I write "nslookup pc2.com"....

It says...

"Connection timed out; no servers could be reached"

Thanks,
 
  


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
DNS configuration ?? xedios Linux - Software 6 12-23-2004 01:59 PM
DNS Configuration skecs Linux - Networking 10 11-17-2004 08:31 AM
DNS configuration? existo Slackware 1 01-30-2004 12:43 PM
DNS Configuration jojogeorge Linux - Software 3 09-23-2003 06:01 AM
DNS configuration how to jdevanand Linux - Networking 7 02-16-2002 10:57 PM

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

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