/    Sign up×
Community /Pin to ProfileBookmark

CRUD records with PowerDNS?

Hey guys,

I am having a bit of trouble with PowerDNS queries to MySQL. I am not sure how to associate IPs with individual DNS records, or how that works.

Is there any way to properly link IP records with DNS records in PowerDNS?

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@MindzaiApr 15.2010 — I've not used PowerDNS, but from a quick scan of their docs it looks like you just need to run a simple MySQL query to create an A record - an A record is what allows a lookup from hostname to IP address.

INSERT INTO records (domain_id, name, content, type,ttl,prio)
VALUES (1,'www.test.com','199.198.197.196','A',120,NULL);
Copy linkTweet thisAlerts:
@PierceMooreauthorApr 21.2010 — Ah, alright. This whole PowerDNS thing is tough for me to wrap my head around. When the new record is inserted into the database, is there a PowerDNS process that auto-propagates the new record to the interweb, or do you have to shell_exec() and reload httpd or whichever process handles DNS?
×

Success!

Help @PierceMoore spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.24,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...