Results 1 to 3 of 3

Thread: Problem changing my DNS server.

  1. #1
    Join Date
    2015-Mar
    Posts
    9

    Question Problem changing my DNS server.

    So I opened /etc/dhcp/dhclient.conf and went to the line:
    Code:
    #prepend domain-name-servers 127.0.0.1;
    I removed the hashtag and changed it to this:
    Code:
    prepend domain-name-servers 208.67.222.222, 208.67.220.220;
    Now the problem is that it doesn't really PREpend the dns's but it appends them...
    When I type
    Code:
    service network-manager restart
    Code:
    cat /etc/resolv.conf
    This is what I get:
    Code:
    # Generated by NetworkManager
    search telenet.be home
    nameserver 2a02:1800:100::45:2
    nameserver 2a02:1800:100::45:1
    nameserver 208.67.222.222
    # NOTE: the libc resolver may not support more than 3 nameservers.
    # The nameservers listed below may not be recognized.
    nameserver 208.67.220.220
    nameserver 195.130.130.5
    nameserver 195.130.131.5
    So it's still using my isp's dns, but not the once I want it to use.
    Is there any proper way of changing this so my dns's come at the first place?
    Last edited by RedByte; 2017-06-11 at 06:07.

  2. #2
    Join Date
    2016-Dec
    Posts
    806
    There is an option in dhclient to ignore some tags. Ignore the DNS/nameserver items and it will skip your ISP ones.

  3. #3
    Join Date
    2015-Mar
    Posts
    9
    Thanks, I can't check it now, but I will tomorrow. I'll let you know if it worked, although I don't see what could go wrong here.

Similar Threads

  1. problem occuring while changing the environment
    By swadhyay sharma in forum TroubleShooting Archive
    Replies: 0
    Last Post: 2020-08-29, 13:51
  2. Server Installation Boot Problem on Dell 1950 III Server
    By Server in forum TroubleShooting Archive
    Replies: 1
    Last Post: 2016-04-25, 15:12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •