1) grep -P is absent on MacOS
2) I checked without -P, it works fine
```
egrep '^nameserver' /etc/resolv.conf | grep -v '[ \t]127.' | head -3
```