Sponsored Content
Operating Systems Linux Red Hat DNS Server Setup Centos 6.5 Issues Post 302903768 by metallica1973 on Thursday 29th of May 2014 12:08:12 PM
Old 05-29-2014
DNS Server Setup Centos 6.5 Issues

I am having a bit of trouble getting my CENTOS 6.5 DNS server to work correctly in our testlab environment. Lab network is 10.8.0.0/24 in which we all access from 10.7.0.0.0/24 && 10.0.0.0/24. Here are my configs:
Code:
options {
	listen-on port 53 { 127.0.0.1; 10.8.0.19;};
	#listen-on-v6 port 53 { ::1; };
	directory 	"/var/named";
	dump-file 	"/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
        // forwarders { 10.8.0.150; };
	memstatistics-file "/var/named/data/named_mem_stats.txt";
	allow-query     { localhost; 10.0.0.0/24; 10.8.0.0/24; 10.7.0.0/24; };
	allow-transfer  { localhost; 10.0.0.0/24; };
        recursion yes;

	dnssec-enable yes;
	dnssec-validation yes;
	dnssec-lookaside auto;

	/* Path to ISC DLV key */
	bindkeys-file "/etc/named.iscdlv.key";

	managed-keys-directory "/var/named/dynamic";
};

logging {
        channel default_debug {
                file "data/named.run";
                severity dynamic;
        };
};

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

zone "labtest.local" IN {
type master;
file "labtest.local.zone";
allow-update { none; };
};

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

include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";

forward look stuff:
Code:
$ORIGIN labtest.local.

$TTL   1d
@               IN SOA  test-nameserver.labtest.local. root.labtest.local.     (

                12 ; se = serial number
                3h         ; ref = refresh
                15m        ; ret = update retry
                3w         ; ex = expiry
                3h         ; min = minimum
                                        )

@                IN   NS   test-nameserver.labtest.local.
@		 IN   A    10.8.0.19


test-nameserver         IN    A   10.8.0.19

dojo1                   IN    A   10.8.0.186
redhat.5.5.32Bit        IN    A   10.8.0.149
redhat.6.2.64Bit        IN    A   10.8.0.147
mandriva.9.2.32Bit      IN    A   10.8.0.153
RELEASE-WIN2003         IN    A   10.8.0.17

reverse stuff
Code:
$TTL    1d
@   IN    SOA   test-nameserver.labtest.local. root.labtest.local. (
    2013112100 ; se = serial number
    3h         ; ref = refresh
    15m        ; ret = update retry
    3w         ; ex = expiry
    3h         ; min = minimum
    )

@                       IN   NS   test-nameserver.labtest.local.
@                       IN   A    10.8.0.19
@			IN PTR    labtest.local

test-nameserver         IN    A   10.8.0.19

19     IN   PTR  test-nameserver.labtest.local.
186    IN   PTR  dojo1.labtest.local.
149    IN   PTR  redhat.5.5.32Bit.labtest.local.
147    IN   PTR  redhat.6.2.64Bit.labtest.local.
153    IN   PTR  mandriva.9.2.32Bit.labtest.local.
17     IN   PTR  RELEASE-WIN2003.labtest.local.

When running my tests against it, I can ping a target but oddly digs response shows that the DNS server is not anwsering:
Code:
[root@test-nameserver]# dig @test-nameserver.labtest.local dojo1

; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.23.rc1.el6_5.1 <<>> @test-nameserver.labtest.local dojo1
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 38262
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;dojo1.				IN	A

;; AUTHORITY SECTION:
.			10800	IN	SOA	a.root-servers.net. nstld.verisign-grs.com. 2014052900 1800 900 604800 86400

;; Query time: 3040 msec
;; SERVER: 10.8.0.19#53(10.8.0.19)
;; WHEN: Thu May 29 11:56:11 2014
;; MSG SIZE  rcvd: 98

[root@test-nameserver]# ping dojo1
PING dojo1.labtest.local (10.8.0.186) 56(84) bytes of data.
64 bytes from dojo1.labtest.local (10.8.0.186): icmp_seq=1 ttl=64 time=1.91 ms
64 bytes from dojo1.labtest.local (10.8.0.186): icmp_seq=2 ttl=64 time=0.573 ms
^C
--- dojo1.labtest.local ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1214ms
rtt min/avg/max/mdev = 0.573/1.244/1.915/0.671 ms
[root@test-nameserver]# nslookup dojo1
Server:		10.8.0.19
Address:	10.8.0.19#53

Name:	dojo1.labtest.local
Address: 10.8.0.186

[root@test-nameserver]# host dojo1
dojo1.labtest.local has address 10.8.0.186
[root@test-nameserver]# 
[root@test-nameserver]# nslookup labtest.local
Server:		10.8.0.19
Address:	10.8.0.19#53

Name:	labtest.local
Address: 10.8.0.19

 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

setup a DNS server for my redhat server

Using Redhat Linux Enterprise AS 4 can someone teach me how to setup a dns server for my webserver? i've registered a domainname at mydomain.com but when i type in the domain i register i cannot enter to my webserver. someone told me that it is related with the DNS setting on my server. i've... (2 Replies)
Discussion started by: kaixiang88
2 Replies

2. UNIX for Dummies Questions & Answers

[Help] Setup slave dns server

Hi all. I need to configure a secondary dns server to get the zones that are in the primary server. How can I do this? It's possible to make to sync automatically? What configuration I ahve to do? And in which files? Thanks in advance. If anyone could give me examples or a tutorial, that... (4 Replies)
Discussion started by: kouh
4 Replies

3. AIX

Setup DNS server on AIX6.1

I'm planning of setting up a DNS server on AIX 6.1. Could someone shed me some lights on the step-by-steps of how to set this up? Thanks. (2 Replies)
Discussion started by: famasutika
2 Replies

4. Solaris

DNS Server setup

I am trying to setup DNS server in Solaris 10. I have two blade 1500 system and want to setup two name server I would like to start setting up DNS. appreciate your help. (1 Reply)
Discussion started by: mnathan
1 Replies

5. Red Hat

configure dns in centos

Hi, how do I set the DNS in centos. I don't mean of creating DNS server, but setting what should be the DNS server of centos. I mean to what server he should go in order to translate url into ip (6 Replies)
Discussion started by: programAngel
6 Replies

6. Linux

How i can setup socks 5 in CentOS?

how i can setup socks 5 in centos? (0 Replies)
Discussion started by: hesamii
0 Replies

7. IP Networking

How i can setup socks 5 in CentOS?

how i can setup socks 5 in centos? (1 Reply)
Discussion started by: hesamii
1 Replies

8. Red Hat

Problem Openvas-setup in CentOs 6.7 !

hi I installed Openvas we have the following problem internet Connection is Ok Even Reinstall the problem is not resolved Openvas Setup, Version: 0.5 Step 1: Update NVT's and SCAP data Please note this step could take some time. Once completed, NVT's and SCAP data will be updated... (12 Replies)
Discussion started by: mnnn
12 Replies

9. Linux

Not able to setup CentOS 7 as gateway [Using squid proxy]

Hello, Did anyone setup a CentOS7 as a gateway (with squid transparent proxy). I am trying to do so but not able to setup. I setup squid , iptables (using it instead of firewalld) and all the necessary IPtables rules but nothing work. It work previously but access.log of squid not getting... (4 Replies)
Discussion started by: sunnysthakur
4 Replies
All times are GMT -4. The time now is 05:31 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy