orourke.tv
orourke.tv
every banana has 5 sides
  • UC
    • Main
    • Cisco
    • Cisco Contact Centre
    • Microsoft
    • Redbox
    • VMware
  • Favourites
    • Main
    • Finance
    • Interesting
    • Laravel
    • Music
    • Online Tools
    • Other
    • Killiney Castle Pool Timetable
    • Purplepi.ie
  • Media
  • About
    • Contact
    • Privacy Policy
    • Sitemap
  • Send Feedback

  1. You are here
  2. Home
  3. tech-notes
  4. scripts
  5. add-default-route-of-a-dns-hostname

  • Old revisions
  • Back to top
  • Share via
    • Share via...
    • Twitter
    • LinkedIn
    • Facebook
    • Pinterest
    • Telegram
    • WhatsApp
    • Yammer
    • Reddit
  • Send via e-Mail
  • Print
  • Permalink

Add Default Route of a DNS hostname

@echo off
for /f "tokens=1,2 delims=[]" %%A in ('ping purplepi.mooo.com -n 1^| find "Pinging"') do set ipaddress=%%B
route add %ipaddress% mask 255.255.255.255 192.168.255.1
ping 127.0.0.1 -n 5 >NUL
  • tech-notes/scripts/add-default-route-of-a-dns-hostname.txt
  • Last modified: 2018/05/17 20:04
  • by gerardorourke
Log In