DNS aggravation with Ubuntu, some help please.
by lleb from LinuxQuestions.org on (#59JA5)
Code:# netplan apply
/etc/netplan/01-netcfg.yaml:1:1: Error in network definition: unknown key 'nameservers'
nameservers:
^
root@raylap:/etc/netplan# cat 01-netcfg.yaml
nameservers:
addresses: [192.168.1.132]
addresses: [8.8.8.8, 8.8.4.4]
addresses: [1.1.1.1, 1.1.0.0]I just installed PiHole in my LAN and would like my laptop to point to the 192.168.1.132 IP address for DNS. It currently is not. I attempted to edit the traditional path /etc/resolv.conf to find out that Ubuntu has abandoned trandition and using something horrid called netplan
https://www.techrepublic.com/article...-server-18-04/
following this guide I attempted to address this issue, but netplan refuses to accept nameservers: as a valid input.
So some help would be great. Thank you.


/etc/netplan/01-netcfg.yaml:1:1: Error in network definition: unknown key 'nameservers'
nameservers:
^
root@raylap:/etc/netplan# cat 01-netcfg.yaml
nameservers:
addresses: [192.168.1.132]
addresses: [8.8.8.8, 8.8.4.4]
addresses: [1.1.1.1, 1.1.0.0]I just installed PiHole in my LAN and would like my laptop to point to the 192.168.1.132 IP address for DNS. It currently is not. I attempted to edit the traditional path /etc/resolv.conf to find out that Ubuntu has abandoned trandition and using something horrid called netplan
https://www.techrepublic.com/article...-server-18-04/
following this guide I attempted to address this issue, but netplan refuses to accept nameservers: as a valid input.
So some help would be great. Thank you.