Back to Blog
Raspberry pi opendns updater5/17/2023 ![]() ![]() You also need to allow the router to connect to your Bind DNS server (port 53 for both TCP and UDP) On more thing you need to do is to open up your router to allow the outside world to connect to the Rasp Pi (your machine) to the specific port running your server. You can easily run a server on your local machine (such as nginx), even easier if you have docker. Like so (assuming the script above is named change.sh and is in your homedns directory): */6 * * * * ~/homedns/change.sh >/dev/null 2>&1 Test your Server You can use crontab to check the IP every so often and then update the zone file using the script. This is a perl script to change the zone IP (based on Ian Atkinsons’ perl script): The next part is to then also change the zone file for the domain as well, whenever your ISP changes the IP. NOTE: You should have a script from your DDNS provider to keep the ip in the provider in step with the dynamic IP provided by your ISP. dig IP address should be of your dynamic ISP. You can then use the dig command to check: dig -tns should respond with your ddns nameservers (note: the change in your domain provider can take a while). Set your nameserver for your custom domain in your domain provider (such as 123-reg) to point to the two name servers defined in your ddns (eg, and ).įor example in .uk you would go to the manage nameserver section to replace the 123 ns1/ns2 server urls with your new ddns ones. You need to have two nameserver domains set up with your ddns provider (eg, no-ip, duckdns), in the example above and .Ĭheck it is resolving locally dig -tns NS authority section should say “” Configure your domain name provider ( 2017081402 serial 8H refresh 2H retry 4W expire 60S minimum ) NS. ![]() You need to define a zone file eg my.zone: $TTL 60S IN SOA. Lots of tutorials about this online (install bind9).Ĭhange the /etc/bind/ file zone "" You need to get bind running on your rasp pi. ![]()
0 Comments
Read More
Leave a Reply. |