In Linux (fedora or cent OS, etc), I want to say if one program tries to download from one url, it goes to my host (my url) instead of what it tries to go. Something like /etc/hosts, but /etc/hosts is host to ip instead.
You can install Dnsmasq. and configure it to override the upstream DNS servers for particular names. There are Dnsmasq packages for almost every Linux distro. See this blog post for simple instructions on how to set it up. It's easy to do.
For example, you can configure Dnsmasq to override any particular host name, say
If your own host names are configured in /etc/hosts, then in
in order to give DNS preference over the