LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 07-25-2008, 01:17 PM   #1
bunty82
LQ Newbie
 
Registered: Apr 2008
Location: New Delhi, India
Distribution: RHEL 5
Posts: 13

Rep: Reputation: 0
DNS and types


Hi, please help me on this
I m making DNS by using following configurations



1. Install related rpms " bind , bind-utils, bind-chroot caching-namserver"
2. cd /var/named/chroot/etc/
3. cp named.caching-nameserver.conf named.conf
4. service named configtest
5. service named restart
6. ls -lZ
7. chown root:named named.conf
8. chmod 640 named.conf
9. restorecon named.conf
10. ls -lZ
11. service named configtest
12. service named start
13. chkconfig named on
14. service iptables stop ( if on )
15. vi named.conf # For caching-nameserver DNS
#inside such file go for 'option' section
listen-on port 53 { localhost; 192.168.0.X; } ; #where X is your PC ip
allow-query { localhost; 192.168.0.0/24 ; } ;
allow-transfer { localhost ; 192.168.0.254; };
forwarders { 192.168.0.254; } ;
forward only ;

16. service named configtest
17. service named restart
18. netstat -tulpn | grep named
19. service named configtest
20. service named restart

# CONFIGURE LOCAL RESOLVER
21. vi /etc/sysconfig/network-scripts/ifcfg-eth0
22. PEERDNS=no #prevent dhclinet to overwriting changes in such file
23. vi /etc/resolv.conf
24. search example.com
nameserver 192.168.0.254

25. service named configtest
26. service named restart
27. service network restart
#Adding zone data
28. create zone files in /var/named/chroot/etc/named.rfc1912.zones
Note : -> zone files are attached with mails
29.After create zones ..
cd /var/named/chroot/var/named
cp localhost.zone forward.zone
chown root:named forward.zone
chcon -R --reference=localhost.zone forward.zone
cp named.local reverse.zone
chown root:named reverse.zone
chcon -R --reference=named.local reverse.zone

30. service named configtest
31. service named restart





This includes some other files like Forward.zone and reverse.zone
can anyone tell me what kind of DNS is this ,
And how this one works
 
Old 07-25-2008, 01:25 PM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
Forward zones are "names to IPs", reverse zones are "IPs to names".
 
  


Reply

Tags
dns


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
conflicting redeclaration of sys/types.h and linux/types.h schmil Programming 6 12-11-2008 02:02 PM
Win2k3 DNS + PFsense DNS Forwarder = No internal DNS resolution Panopticon Linux - Networking 1 11-19-2007 09:59 PM
Two return types Ephracis Programming 12 01-16-2007 06:23 AM
Types jhbumby Linux - Newbie 4 10-19-2005 06:47 AM
Types of Languages ? indian Programming 2 08-17-2004 02:12 PM


All times are GMT -5. The time now is 03:38 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration