Im using VPN and dnsleaktest.com shows me that it discovered vpn dns and my isp dns. I want to avoid using isp dns when using vpn.

I found I can use prepend domaine name servers in /etc/dhcp/dhclient.conf but all it does is give the psecified dns a priority so it doesnt disable isp dns.

1 Answer 1


You can also reject the obtained IP with

# /etc/dhcp/dhclient.conf 

or leave out domain-name-servers

request subnet-mask, broadcast-address, time-offset, routers,

see also man dhclient.conf.

  • Why is reject ignored? The exact same ip address keeps on appearing evn though I set reject the ip address
    – fdsfgdsdf
    Apr 6, 2014 at 22:55
  • other method is to leave out domain-name-servers. for more info man dhclient.conf
    – user224465
    Apr 7, 2014 at 0:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.