Whenever I connect my laptop to my Xfinity router (TC8305C), it writes wonky settings into my resolv.conf. Rather than completely hard-codinging the settings on my laptop, can I override the settings only when I'm connecting to this jacked-up router?
I'm getting these settings in my resolv.conf from the Xfinity router:
nameserver 75.75.75.75
nameserver 75.75.76.76
search home.network
The search home.network
in particular is a problem since I can't browse to https://github.com with this configuration, apparently because of this weird github.com.home.network entry:
$ nslookup github.com
Server: 75.75.75.75
Address: 75.75.75.75#53
Non-authoritative answer:
Name: github.com.home.network
Address: 127.0.53.53
I also use the laptop at work where there's a very specific network config, so I'm pretty sure if I just hard-code settings in my laptop and ignore the ones from DHCP, I'll have problems. Is there a way to fix my networking settings when connected to my home router without affecting them elsewhere?