DNS forward and reverse entry required thorugh scripting instead of manually done


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers DNS forward and reverse entry required thorugh scripting instead of manually done
# 1  
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
# 2  
Old 05-08-2009
Good dns servers will support dynamic updates somehow (man nsupdate).

We wrote scripts around nsupdate and we maintain all of our zones dynamically.

But we use a good DNS server (e.g. ISC bind).
# 3  
Old 05-09-2009
Okies !! thanking you for your reply....ya we are also using DNS BIND server ..so maybe your script will help me out for resolving my query.........Could you pls send me out the format of your script sothat i can understand and test it in my working environment.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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
Login or Register to Ask a Question