Sponsored Content
Top Forums UNIX for Dummies Questions & Answers DNS forward and reverse entry required thorugh scripting instead of manually done Post 302312931 by leenagoyal on Monday 4th of May 2009 06:29:41 AM
Old 05-04-2009
DNS forward and reverse entry required thorugh scripting instead of manually done

HI GUrus,

I am very mcuh new for this forum ....i need you all guys help for resolving my queries.

As i have DNS server , platform is sunsolaris----8. We are using that serevr for resolving all network nodes.

I am going to explain the process what i am following ....

I could have many zones like db.public.internet.com.


@ IN SOA public.internet.com TestDNS01.internet.com. (
200901060818
3600
300
604800
3600 )
IN NS TestDNS01.internet.com.
IN NS TestDNS02.internet.com.
IN NS TestDNS03.internet.com.
TestDNS01 IN A 10.8.5.1
TestDNS02 IN A 10.8.5.2
TestDNS03 IN A 10.8.5.3

TestDNS01, TestDNS02,TestDNS03 are my nameservers.

Node01 is switch and it's ip address 172.16.3.2 for that i will follow below mentioned steps.

i will go to concerned zones like public.internet.com.
Node01 IN A 172.16.3.2 (forward)
save the changes and increse SOA by 1

Then go to reverse file of that zone and make an entry as following.
2.3.16 IN PTR Node01.internet.com.
save the changes and increase SOA by 1 and kill the named process.

After that for verification we will do nslookup.


I wish to do above mentioned things through script . Could you pls help me out in this regard ??



Thanking you
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

telnet refused / reverse DNS issue?

I have users with laptops who may telnet from the local network one minute and then connect remotely a short time later from a different IP address. This causes a problem as the UnixWare 7.1.1 server appears to try to resolve the remote machine name (via our primary DNS server) to the IP... (4 Replies)
Discussion started by: rm -r *
4 Replies

2. Shell Programming and Scripting

Reverse DNS problem

Hi everyone, I am having a problem in the following area: I want to arrange list of Ip Addresses selected from a multiple files and make it look like this: "IP=192.168.0.1, hostname=snake.cooliris.com" Now i have already written the code to select the ip address from various files but... (4 Replies)
Discussion started by: snake450
4 Replies

3. UNIX for Advanced & Expert Users

[DNS] Reverse Lookup for 2 IP Addresses

Originally I had the server at home and on Comcast so I used dyndns.org for DNS. Once the server got a bit more popular, I leased a server at a colo facility. They set up the server name in their DNS so I didn't really have any reason to manage my own DNS. DynDNS was managing the domains and I... (7 Replies)
Discussion started by: BOFH
7 Replies

4. UNIX for Advanced & Expert Users

Forward/Reverse Hostname Resolution for Oracle Install

I've got an old v880 running Sol10 that is going to another location. When the system moves, the domainname in resolv.conf will change also. My DBA's are going through the steps of installing Oracle on the box and they want the install program to resolve the hostname is if the box were already in... (2 Replies)
Discussion started by: bluescreen
2 Replies

5. Shell Programming and Scripting

How to convert forward zone file to reverse

I have forward dns zone file with A records and converting it to reverse zone file ex. subdomain1 A 10.20.30.40 subdomain2 A 10.20.31.41 subdomain3 A 10.20.35.43 subdomain4 A 10.20.30.41 subdomain5 ... (5 Replies)
Discussion started by: mosavani
5 Replies

6. UNIX for Advanced & Expert Users

dnsstuff says no reverse dns in place, but there is!

Folks...have just stumbled on an issue where DNSstuff says there is no reverse dns in place when there is...as evidenced by a reverse check from 3 diff networks. Any advice why this would be happening (DNSstuff-wise) would be appreciated. Jordan: jsd@standby:~$ host 12.177.133.70... (3 Replies)
Discussion started by: jsd
3 Replies

7. IP Networking

Reverse DNS

Hello, I'm trying to get reverse dns to point to my domain on network but I'm failing. I am using bind dns with port 53 enabled and my ISP is mediacom. Currently my reverse dns is *.client.mchsi.com and I would like to make it example.com basically. My bind configuration I have 2 records, one... (4 Replies)
Discussion started by: GRMrGecko
4 Replies

8. Red Hat

DNS reverse lookup issue

Hi guys. Ok so let me lay out my configs. I can do a NSlookup from client to server BUT NOT a reverse lookup. DNS server: Optimus.jaydomain.com IP : 192.168.1.50 DNS Client: Megatron.jaydomain.com IP : 192.168.1.60 On Sever: # cat /etc/named.conf // // named.conf // // Provided... (4 Replies)
Discussion started by: Junaid Subhani
4 Replies
Mail::DKIM::DNS(3)					User Contributed Perl Documentation					Mail::DKIM::DNS(3)

NAME
Mail::DKIM::DNS - performs DNS queries for Mail::DKIM DESCRIPTION
This is the module that performs DNS queries for Mail::DKIM. CONFIGURATION
This module has a couple configuration settings that the caller may want to use to customize the behavior of this module. $Mail::DKIM::DNS::TIMEOUT This global variable specifies the maximum amount of time (in seconds) to wait for a single DNS query to complete. The default is 10. Mail::DKIM::DNS::resolver() Use this global subroutine to get or replace the instance of Net::DNS::Resolver that Mail::DKIM uses. If set to undef (the default), then a brand new default instance of Net::DNS::Resolver will be created the first time a DNS query is needed. You will call this subroutine if you want to specify non-default options to Net::DNS::Resolver, such as different timeouts, or to enable use of a persistent socket. For example: # first, construct a custom DNS resolver my $res = Net::DNS::Resolver->new( udp_timeout => 3, tcp_timeout => 3, retry => 2, ); $res->udppacketsize(1240); $res->persistent_udp(1); # then, tell Mail::DKIM to use this resolver Mail::DKIM::DNS::resolver($res); Mail::DKIM::DNS::enable_EDNS0() This is a convenience subroutine that will construct an appropriate DNS resolver that uses EDNS0 (Extension mechanisms for DNS) to support large DNS replies, and configure Mail::DKIM to use it. (As such, it should NOT be used in conjunction with the resolver() subroutine described above.) Mail::DKIM::DNS::enable_EDNS0(); Use of EDNS0 is recommended, since it reduces the need for falling back to TCP when dealing with large DNS packets. However, it is not enabled by default because some Internet firewalls which do deep inspection of packets are not able to process EDNS0-enabled packets. When there is a firewall on a path to a DNS resolver, the EDNS0 feature should be specifically tested before enabling. AUTHOR
Jason Long, <jlong@messiah.edu> COPYRIGHT AND LICENSE
Copyright (C) 2006-2007, 2012-2013 by Messiah College This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available. perl v5.18.2 2013-02-07 Mail::DKIM::DNS(3)
All times are GMT -4. The time now is 11:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy