Raspberry pi – dynamic IP and static DNS

To get an IPĀ  address via DHCP but stick to a pre defined DNS server could be accomplished by:

Edit /etc/dhcp/dhclient.conf and uncomment the following line:

#prepend domain-name-servers;

If you want to use e.g. Google DNS Server modify to:

#prepend domain-name-servers;


Leave a Reply

Your email address will not be published. Required fields are marked *