What's new

In dnsmasq, how do I stop overriding an address if the server goes down?

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

PickleTickle

New Around Here
for example, if I have something like this in dnsmasq

Code:
address=/steamcontent.com/192.168.0.225

which redirects to my server (192.168.0.225), how do I make it go back to steamcontent.com if my server goes down?

Currently, if my server goes down, requests to steamcontent.com will timeout.
 
dnsmasq by itself cannot control the behaviour of the clients. It's role is merely to supply DHCP/DNS records when a client asks for them. You could add multiple address= lines for steamcontent.com but it will be entirely down to the client how it uses them.

The only way I can think of to be sure your clients go to a specific IP address would be to have a script that's always running that monitors the availability of your local server. If the server goes down the script would remove your address= line and restart dnsmasq. When the TTL of the DNS record expires the client will start using the public IP address. The script would also have to do the reverse when the local server came back online.
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top