manually specify DNS servers

Discussion in 'Server Operation' started by ubuntu server newbie, Aug 26, 2006.

  1. Where do I specify my DNS servers?

    I'm running Ubuntu server 6.06 with ubuntu desktop installed.

    When I change the servers via System>Administration>Networking and then enter my password for root access then add the servers to the DNS tab after about 15 minutes my entries dissappear (I suspect this is the period that root acces is enabled).

    I've tried editing /etc/networking/interfaces as follows but it's not working

    iface eth1 inet dhcp


    iface eth1 inet dhcp

    I'm assigning a static IP via my router so DHCP is enabled.

  2. falko

    falko Super Moderator ISPConfig Developer

    It's /etc/resolv.conf.
  3. I tried that but every time I restarted the network interfaces it defaulted back to the previous file. I suspect it was getting it from the router via dhcp even though I had specified them in my router config. Maybe a dlink firmware problem?

    I edited /etc/dhcp3/dhclient.conf

    change the line
    #prepend domain-name-servers;

    prepend domain-name-servers, yyy.yyy.yyy.yyy;

    and it now adds the specified servers to the top of the file each time networking starts


Share This Page