Issue in DNS set up


 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Issue in DNS set up
# 1  
Old 08-14-2012
MySQL Issue in DNS set up

SmilieI am a beginer in Linux admin. I have build new DNS setting in my system. Please find the below procedure what I followed to build DNS. but at last when I fired nslookup command, its getting error. I am using RHEL5 OS. Please help me to resolve this below issue..

Advance thanks for helping.............. Smilie

Steps:

Code:
[root@server1 named]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
#127.0.0.1              server1.com server1 localhost.localdomain localhost
#::1            localhost6.localdomain6 localhost6
192.168.2.2     rhel5.server1.com       server1

Code:
[root@server1 named]# cat /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=yes
HOSTNAME=server1.com

named.caching-nameserver.conf
listen-on port 53 { 127.0.0.1; 192.168.2.2; };
allow-query     { localhost;192.168.2.1/24; };
match-clients      { localhost; 192.168.2.1; };

named.rfc1912.zones
zone "server1.com" IN {
        type master;
        file "server1.for";
        allow-update { none; };
};

zone "2.168.192.in-addr.arpa" IN {
        type master;
        file "server1.for";
        allow-update { none; };
};

[root@server1 named]# cat /var/named/chroot/var/named/server1.for
$TTL    86400
@               IN SOA  rhel5.server1.com.      root.server1.com (
                                        2012081400      ; serial (d. adams)
                                        3H              ; refresh
                                        15M             ; retry
                                        1W              ; expiry
                                        1D )            ; minimum

                        IN NS           rhel5.server1.com.
server1         IN A            192.168.2.2
www             IN CNAME        server1

[root@server1 named]# cat /var/named/chroot/var/named/server1.rev 
$TTL    86400
@       IN      SOA     rhel5.server1.com.      root.server1.com (
                                      2012081401 ; Serial
                                      28800      ; Refresh
                                      14400      ; Retry
                                      3600000    ; Expire
                                      86400 )    ; Minimum
          IN      NS      rhel5.server1.com.
2.      IN      PTR     server1


[root@server1 named]# ll /var/named/chroot/var/named/server1*
-rw-r----- 1 named root 257 Aug 14 16:32 /var/named/chroot/var/named/server1.for
-rw-r----- 1 named root 439 Aug 14 20:01 /var/named/chroot/var/named/server1.rev

[root@server1 named]# cat /etc/resolv.conf 
; generated by /sbin/dhclient-script
search Belkin
nameserver 192.168.2.2

Checking Conf and zone files
[root@server1 named]# named-checkconf /etc/named.caching-nameserver.conf
[root@server1 named]# named-checkconf /etc/named.rfc1912.zones
[root@server1 named]# named-checkzone server1.com /var/named/chroot/var/named/server1.for
zone server1.com/IN: loaded serial 2012081400
OK
[root@server1 named]# named-checkzone server1.com /var/named/chroot/var/named/server1.rev
/var/named/chroot/var/named/server1.rev:9: ignoring out-of-zone data (2)
zone server1.com/IN: loaded serial 2012081401
OK

[root@server1 named]# service named restart
Stopping named:                                            [  OK  ]
Starting named:                                            [  OK  ]

Error:

[root@server1 ~]# nslookup
> rhel5.server1.com
Server:         192.168.2.2
Address:        192.168.2.2#53

** server can't find rhel5.server1.com: NXDOMAIN
> exit


Last edited by pradipta_pks; 08-14-2012 at 02:45 PM..
# 2  
Old 08-14-2012
named.rfc1912.zones shows "server1.for" twice, i think you want .rev on the 2nd one. Also I don't believe you'd put a period after the 2 in your .rev file (The out of zone error). You only end with a dot if it is the complete name.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Linux

DNS Response Issue

Hi, I have a Windows based Domain (abc.com)servers like: 172.30.1.246 172.30.1.247 172.30.3.246 172.30.3.247 On all my Linux servers (/etc/resolv.conf) have a following DNS servers entries: nameserver 172.30.3.246 nameserver 172.30.3.247 But when i ping my Domain (abc.com), it... (5 Replies)
Discussion started by: refra
5 Replies

2. HP-UX

HP-UX DNS issue

Hi All, I'm having some problems with our HP-UX environment. I'm running Oracle EBS on a HP-UX system, and whenever my primary dns server goes down some of my clients can no longer connect. Everything on my windows side continues to work, and clients can reach the internet and other services... (6 Replies)
Discussion started by: agonza07
6 Replies

3. UNIX for Advanced & Expert Users

Set up and configure DNS in virtualbox

hi to everyone. our instructor gave us a cd containing rhel6. where on 3rd week now and he is assgning us to configure a dns. Im using rhel 6.3(anaconda). i install bind. and says:nothing to do. when i follow step by step configuration in some website i encounter problems like i have no file... (1 Reply)
Discussion started by: rpmacaspac
1 Replies

4. Programming

How to set DNS lookup type for getaddrinfo()?

Hi there, I'm trying to do an MX type lookup using getaddrinfo(), but I can't work out how to change the lookup type to MX from the standard A - can anybody tell me how to do this? Thanks very much John G (3 Replies)
Discussion started by: JohnGraham
3 Replies

5. Red Hat

How to set dns in rhel4

Hi, I would like to know on how to set up dns on my server running rhel 4, the purpose so other computers can look through this server(trial1) when they nslookup and so on.. I tried to put my server name(trial1) and ip address in /etc/resolv.conf but when I try on the other server to... (4 Replies)
Discussion started by: flekzout
4 Replies

6. Linux

DNS unable to set up!!

Hi Experts, I am a newbie like in Linux world, practising Fedora Linux on VMWare but DNS is never set up: Below are my conf files: 1. named.conf options { directory "/var/named"; /* * If there is a firewall between you and nameservers you want * to talk... (4 Replies)
Discussion started by: vikasdh
4 Replies

7. IP Networking

How can I set DNS for my website

I have developed a website using LAMP. Right now we are accessing the website using ip address(in intranet) ie http://10.192.192.162/IntraWeb/index.php I would like to access the web using name instead of ip address. ie http://www.projects.org/IntraWeb/index.php How can I set DNS for... (1 Reply)
Discussion started by: sip
1 Replies

8. UNIX for Advanced & Expert Users

DNS issue still not looking in files

anyone ever seen this problem with /etc/nsswitch.conf forcing the system to look in files then dns but the system ignores the files and goes off check the dn servers is there any further config I've missed ??? /etc/resolve.conf name servers >>>> boring IPS /etc/nsswitch.conf is set to... (5 Replies)
Discussion started by: kie
5 Replies

9. IP Networking

DNS issue.

Hi, We use linux as a DNS server for our local network. ( linuxnol.nollekens.be ) We can ping this machine on all our XP clients like this: C:\>ping linuxnol Until yesterday it was on our XP clients enough to type "ping ibm250" ( our 2de unix server, an AIX ). But after a shutdown of this... (1 Reply)
Discussion started by: progressdll
1 Replies

10. UNIX for Dummies Questions & Answers

DNS set-up

Were able to set-up and configure Web,File and DHCP Services except for the DNS set-up. Isn't it that to set up dns, we have to use BIND? In Web Services, we were able to view the default page using the servers IP address, our client wants to view it using or typing the address for example... (2 Replies)
Discussion started by: carljo
2 Replies
Login or Register to Ask a Question