Results 1 to 3 of 3

Thread: Ubuntu Server manually set DNS

  1. #1
    Join Date
    May 2005
    Beans
    193

    Ubuntu Server manually set DNS

    Hey Ubuforums,

    Quick question here. I have a ubuntu server up and running with a static IP address, no issues there. The problem I'm having is that whenever I reboot the machine it seems to lose it's DNS settings. I can set the DNS settings manually by doing a sudo nano /etc/resolv.conf and manually adding in "nameserver 192.168.1.254" and then DNS begins to work, but for some reason I lose this configuration upon reboot.

    How do I get around this?
    Ubu,noobu

  2. #2
    Join Date
    Feb 2011
    Location
    Coquitlam, B.C. Canada
    Beans
    1,415
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Ubuntu Server manually set DNS

    Add the DNS addresses to your /etc/network/interfaces file.
    There is an example in the 12.04 server guide here.

  3. #3
    Join Date
    May 2005
    Beans
    193

    Re: Ubuntu Server manually set DNS

    Quote Originally Posted by Doug S View Post
    Add the DNS addresses to your /etc/network/interfaces file.
    There is an example in the 12.04 server guide here.
    Thank you. I'll check that out.
    Ubu,noobu

Tags for this Thread

Bookmarks

Posting Permissions

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