PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Noms de domaine > ms.public.win.server.dns > Update missing PTR records
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Update missing PTR records

Réponse
 
LinkBack Outils de la discussion
Vieux 12/06/2007, 15h13   #1
Bob
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Update missing PTR records

The reverse zone for an address range was not created at the start. I need to
programatically update the reverse zone if possible from the existing forward
zone, any suggestions?
  Réponse avec citation
Vieux 12/06/2007, 20h36   #2
Herb Martin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Update missing PTR records


"Bob" <Bob@discussions.microsoft.com> wrote in message
news:06AF6421-369C-4F91-BF13-1F9AD385D78E@microsoft.com...
> The reverse zone for an address range was not created at the start. I need
> to
> programatically update the reverse zone if possible from the existing
> forward
> zone, any suggestions?


There is NO relationship between forward and reverse zones in DNS
itself -- the only such relationship is in the minds of admins like us.

So you will need to script this if you wish to do something like this,
perhaps
using DNSCmd to first dump the list of forward records and then (after
any post-processing) using that list to script in the changes to the reverse
zone.

You can use /enumrecords to get the list of records:

dnscmd /enumrecords learnquick.com .

(that's a "."-dot on the end there since you must give the starting node)

Problem is this gets ALL records so you have to send it through Grep,
Awk, Sed, Perl, etc or edit the result by hand:

I don't usually use FindStr (prefering a good Grep or Perl but I have
approximated the FindStr to strip the unnecessary lines (only close
because FindStr is giving me unpredictable results):

dnscmd /enumrecords learnquick.com . | findstr /r "^[a-z].* +A +[0-9.]+$"

Once you have the list of records you can pump them through a DNSCmd
/RecordAdd with one (or two) for..in..do loops. You will need two if you
don't have another way to differentiate dynamic records (with an Aging:
parameter) from Static records AND if you want to check both.


--
Herb Martin, MCSE, MVP
http://www.LearnQuick.Com
(phone on web site)


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 01h28.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,09833 seconds with 10 queries