Transporting from GitHub #901 ,
I am a web developer and i want to add custom domain names to my dns server. (like http://pi.hole does) To redirect to my project (http://myProject.dev > 192.168.10.x etc.) Is this possible with pi-hole?
and #812 :
Because the Pi is now the DNS-server for the local network, it should be possible to add my own records.
For example, I want to add one of my homeservers so it would resolve to a local IP address. Or I want to override the google.com record to resolve to another IP address.
I hope that I was clear enough
Mcat12
November 16, 2016, 1:20am
2
This is currently possible by editing /etc/hosts
and entering the IP to domain mappings you desire. Then restart Dnsmasq with sudo service dnsmasq restart
or whatever command restarts services on your distro.
DL6ER
December 4, 2016, 8:01pm
3
This will not be implemented in the web UI in the near future. There would just be too many things we would need to validate in order to prevent that a n inexperienced user can break his networking settings.
The ability to add custom (local) DNS records has been implemented a while back
pi-hole:devel
← Mograine:master
opened 12:29AM - 27 Oct 19 UTC
**By submitting this pull request, I confirm the following:** `{please fill any … appropriate checkboxes, e.g: [X]}`
`{Please ensure that your pull request is for the 'devel' branch!}`
- [X] I have read and understood the [contributors guide](https://github.com/pi-hole/AdminLTE/blob/master/CONTRIBUTING.md), as well as this entire template.
- [X] I have made only one major change in my proposed changes.
- [X] I have commented my proposed changes within the code.
- [X] I have tested my proposed changes.
- [X] I am willing to help maintain this change if there are issues with it later.
- [X] I give this submission freely and claim no ownership.
- [X] It is compatible with the [EUPL 1.2 license](https://opensource.org/licenses/EUPL-1.1)
- [ ] I have squashed any insignificant commits. ([`git rebase`](http://gitready.com/advanced/2009/02/10/squashing-commits-with-rebase.html))
- [X] I have Signed Off all commits. ([`git commit --signoff`](https://git-scm.com/docs/git-commit#Documentation/git-commit.txt---signoff))
---
**What does this PR aim to accomplish?:**
This new page will take advantage of the two commands added in core PR https://github.com/pi-hole/pi-hole/pull/2978 to allow users to add and delete custom DNS records
This intend to correctly fix core issue https://github.com/pi-hole/pi-hole/issues/975
**How does this PR accomplish the above?:**
This interface use datatable to manage the custom records, using the two new commands in order to add/delete records from the custom.list file
**What documentation changes (if any) are needed to support this PR?:**
Probably a bunch of screenshot to update since this PR add a new navbar entry.
pi-hole:development
← Mograine:patch-1
opened 12:26AM - 27 Oct 19 UTC
**By submitting this pull request, I confirm the following:**
*please fill any… appropriate checkboxes, e.g: [X]*
- [X] I have read and understood the [contributors guide](https://github.com/pi-hole/pi-hole/blob/master/CONTRIBUTING.md), as well as this entire template.
- [X] I have made only one major change in my proposed changes.
- [X] I have commented my proposed changes within the code.
- [X] I have tested my proposed changes, and have included unit tests where possible.
- [X] I am willing to help maintain this change if there are issues with it later.
- [X] I give this submission freely and claim no ownership.
- [X] It is compatible with the [EUPL 1.2 license](https://opensource.org/licenses/EUPL-1.1)
- [X] I have squashed any insignificant commits. ([`git rebase`](http://gitready.com/advanced/2009/02/10/squashing-commits-with-rebase.html))
Please make sure you [Sign Off](https://github.com/pi-hole/pi-hole/wiki/How-to-signoff-your-commits.) all commits. Pi-hole enforces the [DCO](https://github.com/pi-hole/pi-hole/wiki/Contributing-to-the-project).
---
**What does this PR aim to accomplish?:**
Those command will be used by the AdminLTE custom DNS entries interface, pull requested here : https://github.com/pi-hole/AdminLTE/pull/1035
It will correctly answer the feature request of issue #975
**How does this PR accomplish the above?:**
By adding a custom.list file in dnsmasq conf folder, we allow the users to properly handle their custom DNS entries using the two new webpage.sh commands.
**What documentation changes (if any) are needed to support this PR?:**
We would need to add those two new commands in the webscript commands list in https://docs.pi-hole.net/core/pihole-command/#pi-hole-web
---
* You must follow the template instructions. Failure to do so will result in your pull request being closed.
* Please respect that Pi-hole is developed by volunteers, who can only reply in their spare time.