Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple DNS record #10

Open
awikatchikaen opened this issue Aug 17, 2014 · 11 comments
Open

Multiple DNS record #10

awikatchikaen opened this issue Aug 17, 2014 · 11 comments

Comments

@awikatchikaen
Copy link

Hi,

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

Thank you

@trash-anger
Copy link

Up !

@Chralu
Copy link
Owner

Chralu commented Aug 27, 2014

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
#10 (comment).

@awikatchikaen
Copy link
Author

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

Thank you

@Tepee-me
Copy link

Tepee-me commented Oct 4, 2015

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

@paul-mesnilgrente
Copy link

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

@Jir4
Copy link

Jir4 commented Dec 7, 2015

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

@paul-mesnilgrente
Copy link

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

@Chralu
Copy link
Owner

Chralu commented Dec 30, 2015

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

@Jir4
Copy link

Jir4 commented Dec 30, 2015

Sincerely, i love you guy

@paul-mesnilgrente
Copy link

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

@rirethy
Copy link

rirethy commented Mar 7, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants