LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-24-2005, 02:01 AM   #1
krishvij
Member
 
Registered: Feb 2005
Location: India
Distribution: RHEL 3
Posts: 108

Rep: Reputation: 15
RHEL 3 - DNS Server Config - Help Required


Hi,

I have a RHEL 3 PC with IP of 192.168.10.99
host name is server1.example.com
currently there is no NIS configured.

I want to host a web site www.vk.com on this server. for this, i need to configure DNS server on this PC. I checked out the GUI tool but to no avail. I also know that the location of the forward and reverse lookup zone files is /var/named.

My question is this :-

If I want server1.example.com to host the domain www.vk.com with the same IP, then what entries do I make in the forward and reverse lookup zones?

Please help.
 
Old 02-24-2005, 02:59 AM   #2
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
You can find the official documentation here which is quite complex. if you do a Google search for it with your distro you will probably find a simpler howto.
 
Old 02-27-2005, 11:17 PM   #3
krishvij
Member
 
Registered: Feb 2005
Location: India
Distribution: RHEL 3
Posts: 108

Original Poster
Rep: Reputation: 15
Hi,

I followed the link that you had provided and saw the lessons. I tried to configure my DNS just like that, but it is still not working. I am sure I am making some silly mistake. I am just pasting my conf files below. kindly do look into the config and let me know where i am wrong.

/etc/named.conf
----------------------
// generated by named-bootconf.pl
//
// a caching only nameserver config
//
options {
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
directory "/var/named";
};
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "." {
type hint;
file "named.ca";
};
zone "localhost" {
allow-update { none; };
type master;
file "localhost.zone";
};
zone "0.0.127.in-addr.arpa" {
allow-update { none; };
type master;
file "named.local";
};
zone "vk.com" {
type master;
file "vk.com.zone";
};
zone "10.168.192.in-addr.arpa" {
type master;
file "10.168.192.in-addr.arpa.zone";
};
include "/etc/rndc.key";

/var/named/vk.com.zone
---------------------------------
$TTL 86400
@ IN SOA server1.vk.com. root.vk.com (
11 ; serial
28800 ; refresh
14400 ; retry
3600000 ; expire
86400 ; ttl
)


vk.com. IN CNAME example.com.
IN NS 192.168.10.99

A IN A 192.168.10.99

/var/named/10.168.192.in-addr.arpa.zone
---------------------------------------------------------
$TTL 86400
@ IN SOA server1.vk.com. root.vk.com. (
7 ; serial
28800 ; refresh
14400 ; retry
3600000 ; expire
86400 ; ttl
)

99 IN PTR www.vk.com.

Please help.
 
Old 02-27-2005, 11:36 PM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Have you set your machine up as the primary name server for the domain? I notice you are using a non-publicly routable IP address (192.168.10.99) so I'm not exactly sure what you're aiming at doing. Is this meant to be the primary DNS server for the actual vk.com domain, or is this only for internal use on your own private network?
 
  


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
Dns Required kapsikum Programming 2 07-01-2005 06:07 AM
dns config server could be reach butchick Linux - Newbie 4 04-17-2004 12:50 AM
DNS Zone file config for mail server viniosity Linux - Software 4 09-16-2003 04:59 PM
redhat-config-bind <--- is this the prog that can make my RH8 a DNS server? ...... kublador Linux - Networking 5 04-03-2003 10:47 PM
Newbie Here . . . Having Problems with Apache Server Config and DNS. flem26 Linux - Newbie 6 03-08-2003 08:37 PM


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