0

I need to add some static route with this command on a Windows command prompt:

ROUTE ADD -p IPADREESS GATEWAYIP

But what I want is to use Dns instead of Ip address Is there a way ? How ?

For example:

ROUTE ADD -p *.example.com GATEWAYIP
1

You need to first resolve the IP address of destination domain by nslookup or similar tool, and then use the IP address to add the route.

One cannot setup dynamic routing based on DNS names. It is always performed with IP addresses.

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.