Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Help me setting up dns and understanding it. Post 302913396 by ankurk on Saturday 16th of August 2014 01:33:58 AM
Old 08-16-2014
Help me setting up dns and understanding it.

Hi

I need to set up a dns server for Oracle 11g rac setup. I got some files (copied from friend) named.conf and related files in /var/named , i was told that this would work fine. But i am getting some issues. I am attaching the files here.

The problem is

Code:
dig oralab-scan.oralab.example.com

; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.23.rc1.el6_5.1 <<>> oralab-scan.oralab.example.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 17130
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;oralab-scan.oralab.example.com.        IN      A

;; Query time: 2 msec
;; SERVER: 10.0.2.2#53(10.0.2.2)
;; WHEN: Sat Aug 16 10:55:53 2014
;; MSG SIZE  rcvd: 48

[root@grid named]# nslookup oralab-scan.oralab.example.com
Server:         10.0.2.2
Address:        10.0.2.2#53

** server can't find oralab-scan.oralab.example.com.example.com: REFUSED

Code:
[root@grid named]# more /etc/named.conf
//
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//

options {
        directory "/var/named";     // Base directory for named
        allow-transfer {"none";};   // Slave serves that can pull zone transfer. Ban everyone by default
        };
zone "2.168.192.IN-ADDR.ARPA." IN { // Reverse zone.
        type master;
        notify no;
        file "192.168.2.db";
};

zone "2.10.10.IN-ADDR.ARPA." IN { // Reverse zone.
        type master;
        notify no;
        file "10.10.2.db";
};

zone "example.com." IN {
        type master;
        notify no;
        file "example.com.db";
};

zone "." IN {
type hint;
file "/dev/null";
};

Code:
[root@grid named]# pwd
/var/named
[root@grid named]# cat 192.168.2.db
$TTL 1H
@       IN      SOA     grid  root.example.com.  (
                        2009011201      ; serial (todays date + todays serial #)
                        3H              ; refresh 3 hours
                        1H              ; retry 1 hour
                        1W              ; expire 1 week
                        1D )            ; minimum 24 hour
;
              NS        grid.example.com.
80            PTR       grid.example.com.
90            PTR       oralab-gns.example.com. ; reverse mapping for GNS


Last edited by Don Cragun; 08-16-2014 at 05:13 AM.. Reason: Add additional CODE tags.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Setting Up Dns Server In Bsd

I just learning BSD So how would you go about setting up a DNS server please explain like A,B,C I am a new very new UNIX users so any help would be great thanks :( :confused: (1 Reply)
Discussion started by: BSD_NEWUSER
1 Replies

2. Linux

setting primary dns

Hi, I am running Fedora 7. I seem to remember there being a command to determine the primary dns. Can anyone help me find out what it is? Thanks! (2 Replies)
Discussion started by: user23
2 Replies

3. Solaris

Setting up local DNS Server

Hi , Could some one please share some docs or steps to set up solaris box as a local DNS . Thx (1 Reply)
Discussion started by: skamal4u
1 Replies

4. UNIX for Advanced & Expert Users

DNS server choice: Windows DNS vs Linux BIND

I'd like to get some opnions on choosing DNS server: Windows DNS vs Linux BIND comparrsion: 1) managment, easy of use 2) Security 3) features 4) peformance 5) ?? I personally prefer Windows DNS server for management, it supports GUI and command line. But I am not sure about security... (2 Replies)
Discussion started by: honglus
2 Replies

5. Red Hat

dhcp not setting dns and changing to garbage

I have 2 problems. Dhcp is not setting dns and after I manually set my dns it changes to garbage. I literally just used command to set dns which is a good copy of resolv.conf: sudo cp /home/bob/Desktop/scripts_9-12-2011/resolv.conf /etc/resolv.confHere is a copy of my resolv.conf. #... (5 Replies)
Discussion started by: cokedude
5 Replies

6. Red Hat

DHCP & DNS - Clients get IP but don't register in DNS

I am trying to setup a CentOS 6.2 server that will be doing 3 things DHCP, DNS & Samba for a very small office (2 users). The idea being this will replace a very old Win2k server. The users are all windows based clients so only the server will be Linux based. I've installed CentOS 6.2 with... (4 Replies)
Discussion started by: FireBIade
4 Replies

7. Linux

Setting up slave DNS?

can someone point me in the right direction im trying to setup a Slave dns server this is my named.conf file zone "website1.org" { type slave; file"mydb-for-website1-org"; notify NO; };and this is my var/named/mydb-for-website1-org $TTL 3D @ IN SOA ... (1 Reply)
Discussion started by: gangsta
1 Replies

8. Shell Programming and Scripting

Understanding PATH variable setting?

I do know how we set the PATH variable- export PATH=$JAVA_HOME/bin:$PATH I'm trying to understand why we have written :$PATH in the end above statement. What is it's meaning? (2 Replies)
Discussion started by: boy18nj
2 Replies

9. Ubuntu

Network Manager not setting correct DNS servers

Since a few weeks i use Ubuntu 16 on my laptop: # uname -a Linux xxxx 4.8.0-52-generic #55~16.04.1-Ubuntu SMP Fri Apr 28 14:36:29 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux Because i want to use a custom name server i set the properties in the "Edit Connections" dialogue to the following: ... (2 Replies)
Discussion started by: bakunin
2 Replies

10. Solaris

DNS client added to DNS server but not working

Hi, We have built a new server (RHEL VM)and added that IP/hostname into dns zone configs file on DNS server (Solaris 10). Reloaded the configuration using and added nameserver into resolv.conf on client. But when I am trying nslookup, its not getting resolved. The nameserver is not able to... (8 Replies)
Discussion started by: snchaudhari2
8 Replies
nslint(8)						      System Manager's Manual							 nslint(8)

NAME
nslint - perform consistency checks on dns files SYNOPSIS
nslint [ -d ] [ -c named.conf ] [ -C nslint.conf ] nslint [ -d ] [ -b named.boot ] [ -B nslint.boot ] DESCRIPTION
Nslint reads the nameserver configuration files and performs a number of consistency checks on the dns records. If any problems are discov- ered, error messages are displayed on stderr and nslint exits with a non-zero status. Here is a partial list of errors nslint detects: Records that are malformed. Names that contain dots but are missing a trailing dot. PTR records with names that are missing a trailing dot. Names that contain illegal characters (rfc1034). A records without matching PTR records PTR records without matching A records Names with more than one address on the same subnet. Addresses in use by more than one name. Names with CNAME and other records (rfc1033). Unknown service and/or protocol keywords in WKS records. Missing semicolons and quotes. OPTIONS
-b Specify an alternate named.boot file. The default is /etc/named.boot. -c Specify an alternate named.conf file. The default is /etc/named.conf. -B Specify an alternate nslint.boot file. The default is nslint.boot in the last directory line processed in named.boot (or the current working directory). This file is processed like a second named.boot. The most common use is to tell nslint about A records that match PTR records that point outside the domains listed in named.boot. -C Specify an alternate nslint.conf file. The default is nslint.conf in the last directory line processed in named.conf (or the current working directory). This file is processed like a second named.conf. -d Raise the debugging level. Debugging information is displayed on stdout. Nslint knows how to read BIND 8 and 9's named.conf configuration file and also older BIND's named.boot file. If both files exist, nslint will prefer named.conf (on the theory that you forgot to delete named.boot when you upgraded BIND). ADVANCED CONFIGURATION
There are some cases where it is necessary to use the advanced configuration features of nslint. Advanced configuration is done with the nslint.conf file. (You can also use nslint.boot which has a syntax similar to named.boot but is not described here.) The most common is when a site has a demilitarized zone (DMZ). The problem here is that the DMZ network will have PTR records for hosts outside its domain. For example lets say we have 128.0.rev with: 1.1 604800 in ptr gateway.lbl.gov. 2.1 604800 in ptr gateway.es.net. Obviously we will define an A record for gateway.lbl.gov pointing to 128.0.1.1 but we will get errors because there is no A record defined for gateway.es.net. The solution is to create a nslint.conf file (in the same directory as the other dns files) with: zone "es.net" { type master; file "nslint.es.net"; }; And then create the file nslint.es.net with: gateway 1 in a 128.0.1.2 Another problem occurs when there is a CNAME that points to a host outside the local domains. Let's say we have info.lbl.gov pointing to larry.es.net: info 604800 in cname larry.es.net. In this case we would need: zone "es.net" { type master; file "nslint.es.net"; }; in nslint.boot and: larry 1 in txt "place holder" nslint.es.net. One last problem when a pseudo host is setup to allow two more more actual hosts provide a service. For, let's say that lbl.gov contains: server 604800 in a 128.0.6.6 server 604800 in a 128.0.6.94 ; tom 604800 in a 128.0.6.6 tom 604800 in mx 0 lbl.gov. ; jerry 604800 in a 128.0.6.94 jerry 604800 in mx 0 lbl.gov. In this case nslint would complain about missing PTR records and ip addresses in use by more than one host. To suppress these warnings, add you would the lines: zone "lbl.gov" { type master; file "nslint.lbl.gov"; }; zone "0.128.in-addr.arpa" { type master; file "nslint.128.0.rev"; }; to nslint.conf and create nslint.lbl.gov with: server 1 in allowdupa 128.0.6.6 server 1 in allowdupa 128.0.6.94 and create nslint.128.0.rev with: 6.6 604800 in ptr server.lbl.gov. 94.6 604800 in ptr server.lbl.gov. In this example, the allowdupa keyword tells nslint that it's ok for 128.0.6.6 and 128.0.6.94 to be shared by server.lbl.gov, tom.lbl.gov, and jerry.lbl.gov. Another nslint feature helps detect hosts that have mistakenly had two ip addresses assigned on the same subnet. This can happen when two different people request an ip address for the same hostname or when someone forgets an address has been assigned and requests a new num- ber. To detect such A records, add a nslint section to your nslint.conf containing something similar to: nslint { network "128.0.6/22"; }; or: nslint { network "128.0.6 255.255.252.0"; }; These two examples are are equivalent ways of saying the same thing; that subnet 128.0.6 has a 22 bit wide subnet mask. Using information from the above network statement, nslint would would flag the following A records as being in error: server 1 in a 128.0.6.48 server 1 in a 128.0.7.16 Note that if you specify any network lines in your nslint.conf file, nslint requires you to include lines for all networks; otherwise you might forget to add network lines for new networks. Sometimes you have a zone that nslint just can't deal with. A good example is a dynamic dns zone. To handle this, you can add the following to nslint.com: nslint { ignorezone "dhcp.lbl.gov"; }; This will suppress "name referenced without other records" warnings. FILES
/etc/named.conf - default named configuration file /etc/named.boot - old style named configuration file nslint.conf - default nslint configuration file nslint.boot - old style nslint configuration file SEE ALSO
named(8), rfc1033, rfc1034 AUTHOR
Craig Leres of the Lawrence Berkeley National Laboratory, University of California, Berkeley, CA. The current version is available via anonymous ftp: ftp://ftp.ee.lbl.gov/nslint.tar.gz BUGS
Please send bug reports to nslint@ee.lbl.gov. Not everyone is guaranteed to agree with all the checks done. 4th Berkeley Distribution 2 May 2002 nslint(8)
All times are GMT -4. The time now is 01:37 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy