CLI Error - getaddrinfo ENOTFOUND

For some reason running ionic serve on my machine has suddenly started to error when I try to connect to an api url using a proxy.

I get this in the console:

ionic $ Error: getaddrinfo ENOTFOUND at errnoException (dns.js:26:10) at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:77:26)

Help please!

Turns out my issue was that I was settings the this.nav.setRoot(CurrentPage) in the constructor of CurrentPage which meant I was creating an infinite loop and eventually that seems to kill the browser and the ionic node server. Oops!