Redirect Ext URL to Int IP/Host

I would like to redirect all HTTP requests bound for a specific internet URL to an internal server on my LAN (by either hostname or IP).

Pihole is my DNS server and DHCP server.

The purpose is to get data from a weather station. The weather station only has 5 hardcoded URL options for established services like Wunderground - no option to get Wx station to speak other URLs. I want to process the data locally and then upload the data to another weather service via their API. Note, I want to redirect a specific URL and not the whole domain.

Can this be done in DNS and if so could someone give me a point in the right direction.

Thanks :wink:

DNS deals with entire domains. If you want to redirect paths along a domain, then a proxy server is the solution you need.