I just registered a domain on namecheap, and want to self-host through ddns. I have my host setting setup as:

@            A (address)
www    http://domain.com    HTTP Redirect   

So clearly I'm trying to make it so that a www.domain.com redirects to domain.com, and the dynamic dns updates the latter. So my ddclient.conf file is:

## update time in 300 seconds                                                                                                          
## you can open this file with any text editor to see what is being sent                                                               

## This line will get your public IP address if you're system is not directly connected                                                
## to the internet, such as behind a firewall/router                                                                                   
use=web, web=http://whatismyipaddress.com/, web-skip='Your IP address is'

## Your Domain name                                                                                                                    

Which I took off a tutorial online. When I try to connect to the site, a www.domain.com request redirects as intended, but the redirect or a direct domain.com request give a 400 Bad Request error. There's nothing in the nginx log, and this is my first rodeo with hosting my own server, so I don't really know where to start debugging this.


This almost always happens with Namecheap's default DNS, as they don't update straight away, creating a misalignment when you enter the domain in the browser and the DNS attempts to resolve to where Namecheap first pointed it (its own parking page) when actually their system already has pointed it where you wanted it to go... they just didn't update the DNS (yet).

Resolution is almost always to have a cup of coffee and check back later!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.