{"id":15148274,"url":"https://github.com/ivankuchin/phpipamsync","last_synced_at":"2026-02-18T08:32:42.821Z","repository":{"id":203418657,"uuid":"709080992","full_name":"IvanKuchin/phpipamsync","owner":"IvanKuchin","description":"This project provides a seamless integration between PHPipam and Pi-hole, enabling automatic synchronization of hostnames and IP addresses. By leveraging this synchronization mechanism, you can ensure that Pi-hole's DNS resolver stays up-to-date with the latest host information managed in PHPipam.","archived":false,"fork":false,"pushed_at":"2024-03-09T16:15:58.000Z","size":9087,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-07T02:47:23.874Z","etag":null,"topics":["phpipam","phpipam-api","pihole","pihole-custom"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/IvanKuchin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-10-24T01:12:12.000Z","updated_at":"2024-12-19T00:15:33.000Z","dependencies_parsed_at":"2024-03-16T03:46:19.202Z","dependency_job_id":null,"html_url":"https://github.com/IvanKuchin/phpipamsync","commit_stats":null,"previous_names":["ivankuchin/phpipamsync"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/IvanKuchin/phpipamsync","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IvanKuchin%2Fphpipamsync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IvanKuchin%2Fphpipamsync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IvanKuchin%2Fphpipamsync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IvanKuchin%2Fphpipamsync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IvanKuchin","download_url":"https://codeload.github.com/IvanKuchin/phpipamsync/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IvanKuchin%2Fphpipamsync/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269795784,"owners_count":24477099,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["phpipam","phpipam-api","pihole","pihole-custom"],"created_at":"2024-09-26T13:02:00.782Z","updated_at":"2025-10-19T05:03:56.283Z","avatar_url":"https://github.com/IvanKuchin.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# phpipamsync\n\nSmall script synchronizes phpipam hosts with pi-hole resolvers. \n\n## Requirement\n\nphpipam v1.6 and above\n\n## Use case\n\nPhpipam considered to be a source of truth for DNS resolution. \n* Network admins create hostnames in phpipam. \n* Pihole used as a DNS-server.\n* (optional) Cisco router acts as a DHCP-server\n\nTo synchronize phpipam hostanmes with pihole DNS-resolver \n```\nphpipamsync get pi-hole\n```\n\n## phpipamsync config\n\nLocation ~/.phpipamsync/config\n\n```\nipam_site_url: https://192.168.169.170:8670/                    # IP and port where phpipam exposes API endpoints\nipam_app_id: phpipamsync                                        # phpipam app id\nipam_app_code: AVyzJl7ceWJ5WrbKZ1QjAIgNdMSggw12                 # phpipam app code\nipam_subnets:                                                   # ipam subnets to synchronize\n- 192.168.250.0/24\n- 192.168.251.0/24\n\ndomain: home                                                    # domain to add to hostnames. For example (home will add .home to all hostnames)\npi_hole: /home/ikuchin/docker/pi.hole/etc-pihole/custom.list    # full path to pi-hole custom.list file \n```\n\n**ATTENTION** pi-hole custom file will be rewritten, not appended.\n\n## phpipam API token\n\nTo generate API topken, in phpipam go to Administration -\u003e API -\u003e Create API token. \n\n* Type - SSL with App code token\n* App permission - Read\n\nImportant:  HTTPS access should be enabled to phpipam\n\n## Cisco DHCP config\n\nTo generate DHCP config snippet for Cisco router configuration \n\n```\nphpipamsync get cisco-dhpc\n```\n\nOnce snippet generated it can be copy/paste-ed to the actual router configuration. There is no integration between phpipamsync and router.\n\n## Examples\n\n### DNS resolution\n\n```\ne:\\docs\\src\\go\\phpipamsync\u003enslookup fridge.home\n...\nNon-authoritative answer:\nName:    fridge.home\nAddress:  192.168.251.13\n\ne:\\docs\\src\\go\\phpipamsync\u003enslookup 192.168.251.13\n...\nName:    fridge.home\nAddress:  192.168.251.13\n```\n\n### Cisco IOS DHCP config\n\nClientID generated from either of options below:\n* MAC address (by adding prefix 01.....)\n* Custom field named ClientID ( Administration -\u003e Custom fields -\u003e Custom IP addresses fields )\n\n```\n$ phpipamsync get cisco-dhcp\n\nip dhcp pool fridge\n host 192.168.251.13 255.255.255.0\n client-identifier 0170.2c1f.3ed2.cb\n default-router 192.168.251.1\n!\nip dhcp pool tesla\n host 192.168.251.49 255.255.255.0\n client-identifier 014c.fcaa.8ec6.62\n default-router 192.168.251.1\n!\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivankuchin%2Fphpipamsync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fivankuchin%2Fphpipamsync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivankuchin%2Fphpipamsync/lists"}