Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If I try to add a route with route add dest X.X.X.X mask gw X.X.X.X I get dest: Unknown host message. Nothing changes even if I add the -n switch, which I believe should prevent route from trying to interpret ip addresses as host names. Regardless of the fact if the route is actually valid or not some proprietary software, that I need to work, tries this command and exits with failure. Is it possible to “force” add a route without any checks/host name resolving?

share|improve this question
up vote 1 down vote accepted

The error message is telling you that the literal hostname dest is an unknown host. dest is not a valid parameter for the route command. If you can't change the software to call route differently, you'll have to do something like replacing route with a script that calls the real route with correct arguments.

share|improve this answer
The problem is that dest is actually an ipv4 address and it looks fine to me, I have no idea why route would not treat it as such. – Marek Sapota Oct 28 '12 at 6:48
It's not complaining about the IP address, it is complaining about the literal string dest. – Kyle Jones Oct 28 '12 at 6:55
Well, that explained a lot=D Thanks! – Marek Sapota Oct 28 '12 at 7:30

I take it that you want to add a host route like this:

route add -host X.X.X.X mask gw X.X.X.X
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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