www.webdeveloper.com
Results 1 to 3 of 3

Thread: CRUD records with PowerDNS?

Hybrid View

  1. #1
    Join Date
    Jun 2009
    Posts
    131

    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?

  2. #2
    Join Date
    Nov 2008
    Posts
    2,477
    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.

    Code:
    INSERT INTO records (domain_id, name, content, type,ttl,prio)
    VALUES (1,'www.test.com','199.198.197.196','A',120,NULL);

  3. #3
    Join Date
    Jun 2009
    Posts
    131
    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?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles