LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   RHEL 3 - DNS Server Config - Help Required (https://www.linuxquestions.org/questions/linux-newbie-8/rhel-3-dns-server-config-help-required-294189/)

krishvij 02-24-2005 01:01 AM

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.

TigerOC 02-24-2005 01:59 AM

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.

krishvij 02-27-2005 10:17 PM

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.

btmiller 02-27-2005 10:36 PM

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?


All times are GMT -5. The time now is 05:43 AM.