LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-09-2006, 03:47 PM   #1
a2vr6
Member
 
Registered: Aug 2006
Posts: 46

Rep: Reputation: 15
How to make a PTR record dynamic


I was wondering if someone tell me how to update a PTR record so that it can dynamically get updated from the A record located on another NS?
 
Old 11-09-2006, 06:47 PM   #2
cjcox
Member
 
Registered: Jun 2004
Posts: 307

Rep: Reputation: 42
Assuming you are authoritative for the reverse zone.. in my
case... 168.192.in-addr.arpa. And assuming you have set
your named.conf so that you can do dynamic updates somehow.
And let's assume the name of the host is testit.mydomain.com
and it has the address of 192.168.44.100, then the following
would add a PTR record...

$ nsupdate ...your options here...
zone 44.168.192.in-addr.arpa.
update delete 100.44.168.192.in-addr.arpa PTR
update add 100.44.168.192.in-addr.arpa 86400 PTR testit.mydomain.com.
send

The "...your options here..." part might contain your update key info.. or you can send it in as a command using key KEY_NAME KEY_VALUE to the nsupdate command.
 
Old 11-10-2006, 09:46 AM   #3
a2vr6
Member
 
Registered: Aug 2006
Posts: 46

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by cjcox
Assuming you are authoritative for the reverse zone.. in my
case... 168.192.in-addr.arpa. And assuming you have set
your named.conf so that you can do dynamic updates somehow.
And let's assume the name of the host is testit.mydomain.com
and it has the address of 192.168.44.100, then the following
would add a PTR record...

$ nsupdate ...your options here...
zone 44.168.192.in-addr.arpa.
update delete 100.44.168.192.in-addr.arpa PTR
update add 100.44.168.192.in-addr.arpa 86400 PTR testit.mydomain.com.
send

The "...your options here..." part might contain your update key info.. or you can send it in as a command using key KEY_NAME KEY_VALUE to the nsupdate command.

Shouldn't the IP point to the users Name Server?
 
Old 11-10-2006, 11:19 AM   #4
cjcox
Member
 
Registered: Jun 2004
Posts: 307

Rep: Reputation: 42
In the case I mentioned, I'm assuming you are running your own DNS and have update permissions to it. If not, it's VERY unlikely that you'll be able to update somebody else's DNS, especially with regards to the in-addr.arpa information.

The in-addr.arpa entry defines the "IP" and points to the A record name.

But... I'm not sure if we're understanding each other very well.
 
Old 11-10-2006, 11:40 AM   #5
a2vr6
Member
 
Registered: Aug 2006
Posts: 46

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by cjcox
In the case I mentioned, I'm assuming you are running your own DNS and have update permissions to it. If not, it's VERY unlikely that you'll be able to update somebody else's DNS, especially with regards to the in-addr.arpa information.

The in-addr.arpa entry defines the "IP" and points to the A record name.

But... I'm not sure if we're understanding each other very well.

I do have update permissions on our name server. What I would like to have the following example done.

User requested that the IP they own dynamically get updated by the name servers THEY own. So basically I need to know what would go into the line below:

10 IN PTR dns1(or NS1?).whatever.com. (??) <---does the the users name server go in there or is it more complicated?


Sorry for being such a newbie, I only have basic DNS skills.
 
Old 11-10-2006, 12:10 PM   #6
a2vr6
Member
 
Registered: Aug 2006
Posts: 46

Original Poster
Rep: Reputation: 15
This is what I found in the DNS/BIND cookbook regarding reverse delegation.

"To delegate the 1.168.192.in-addr.arpa subdomain to the name servers ns1.baz.bar.example and ns2.foo.example, you'd add these two NS records to the 168.192.in.addr.arpa zone date file.

1.168.192.in-addr.arpa IN NS ns1ns1baz.bar.example.

1.168.192.in-addr.arpa IN NS ns2.foo.example.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I make my tv/drv card record? Tectron1 Linux - Software 1 09-04-2006 03:48 PM
Help me make a script to record from tv tuner sureshot324 Linux - Software 17 01-18-2006 09:45 AM
IPV6 BIND 9.2 PTR Record toraghun Linux - Networking 3 08-18-2005 03:42 AM
How to format DNS PTR record ? pcom Linux - Networking 2 07-01-2004 11:59 PM
howto make a dynamic ip becomes a stactic ip green-ears Linux - Newbie 9 10-18-2003 07:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration