Setting up namecheap Dyn. DNS
Posted: Sat Jan 16, 2010 2:50 am
The default Namecheap preset for DDNS doesn't work right, however to get it to work I modify /etc/ddns_providers.conf
from:
to a simpler version(no regular expressions):
from:
Code: Select all
service namecheap.com
url_template https://dynamicdns.park-your-domain.com/update?host=[[HOST_PART]]&domain=[[DOMAIN_PART]]&password=[[PASSWORD]]&ip=[[IP]]
required_variables domain password
required_variable_names Domain Name,Password
meta_variables host_part domain_part
host_part echo "[[DOMAIN]]" | sed -e 's/.*$//g'
domain_part echo "[[DOMAIN]]" | grep -o "\..*$" | sed -e 's/^\.//g'
meta_variables_to_cache host_part domain_part
success_regexp /ErrCount.0..ErrCount/
Code: Select all
service namecheap.com
url_template https://dynamicdns.park-your-domain.com/update?host=[[HOST]]&domain=[[DOMAIN]]&password=[[PASSWORD]]&ip=[[IP]]
required_variables host domain password
required_variable_names Hostname,Domain Name,Password
success_regexp /ErrCount.0..ErrCount/