gandyn icon indicating copy to clipboard operation
gandyn copied to clipboard

Multiple DNS record

Open awikatchikaen opened this issue 11 years ago • 11 comments

Hi,

I have multiple DNS record who redirect to my server. Is it possible to your script to modify all at once ?

Thank you

awikatchikaen avatar Aug 17 '14 17:08 awikatchikaen

Up !

trash-anger avatar Aug 21 '14 13:08 trash-anger

Hi,

the script will update any record that matches the filter. Filter is defined in the configuration file : look at the RECORD variable.

Unfortunately if your records cannot be matched with the same filter, Gadyn won't be able to update them all. If this is your case, an evolution of Gandyn will be required.

Keep me posted.

Cheers, Charly

Le 21/08/2014 15:01, trash-anger a écrit :

Up !

— Reply to this email directly or view it on GitHub https://github.com/Chralu/gandyn/issues/10#issuecomment-52916012.

Chralu avatar Aug 27 '14 20:08 Chralu

I have changed my records in CNAME to point to the one I can change with gandyn.

Thank you

awikatchikaen avatar Aug 29 '14 08:08 awikatchikaen

Hello Chralu, I have the same problem and I didn't succeed to adapt the filter. For me, I have 2 records to change, and I would like to do it all in once : @ 300 IN A 84.xxx.xxx.xxx www 300 IN A 84.xxx.xxx.xxx What filter would you suggest to me ?

Cheers, Tepee

Tepee-me avatar Oct 04 '15 06:10 Tepee-me

same problem, my two records are for @ and all my subdomains (*). Any idea ?

paul-mesnilgrente avatar Dec 04 '15 13:12 paul-mesnilgrente

Hi guys, i have the same same use case than @paul-mesnilgrente and so the same trouble. Fix for the moment with 2 script :/

Jir4 avatar Dec 07 '15 16:12 Jir4

I've done the same, two config files with a different record. And two cron, each one with a config file.

paul-mesnilgrente avatar Dec 08 '15 08:12 paul-mesnilgrente

Hi guys,

After having a better look at the gandi API, you could use the following RECORD setup : RECORD = {'type':'A'}

This will update all the records of type 'A'.

It looks like we should be able to use regex with the ~name param, but I can't get it working (see http://doc.rpc.gandi.net/domain/reference.html?highlight=zone.#RecordListOptions)

Cheers, Chrali

Chralu avatar Dec 30 '15 17:12 Chralu

Sincerely, i love you guy

Jir4 avatar Dec 30 '15 22:12 Jir4

Ok I try with RECORD = {'type':'A'}. We'll see :)

paul-mesnilgrente avatar Jan 07 '16 08:01 paul-mesnilgrente

Hello, This subject is quite old, but as I was searching a solution to that particular problem, and that I found a solution, I share it :

By reading the link given by Charlu, it appears that we can give an array for the name of the sub domain.

So, here is how I wrote my search pattern, and, it works :

RECORD = {'type':'A', 'name':['@','SubDomain']}

I tried with two names, but I suppose that it works also with more. And I hope it will, as I use many subdomains :-)

[Edit] I tried with more than 2 subdomain : exactly with 19, and it works fine : example RECORD = {'type':'A', 'name':['@', 'SubDomain1', 'SubDomain2', 'SubDomain3', 'SubDomain4', 'SubDomain5']} [/Edit]

Hope this helps.

rirethy avatar Mar 07 '18 22:03 rirethy