Results 1 to 3 of 3

Thread: Ubuntu Server manually set DNS

  1. #1
    Join Date
    May 2005
    Beans
    205

    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
    3,506
    Distro
    Ubuntu Development Release

    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
    205

    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
  •