Problem with domain name server in intrepid
Carl Friis-Hansen
ubuntuuser at carl-fh.com
Sat Nov 8 17:36:19 UTC 2008
> add your local host name to the /etc/hosts file
>
> ex.
> 192.168.1.x familien
>
I think Kjertil's problem was the DNS servers, so I am not sure the above
will help him.
In the resolv.conf you just write as many lines you need:
////////////////////////
nameserver xxx.xxx.xxx.xxx
nameserver yyy.yyy.yyy.yyy
////////////////////////
However, yiu need to tell us how you connect. If you use DHCP, you
shouldn't need this at all. Please explain more.
> Carl Friis-Hansen wrote:
>>> I just upgraded to intrepid, and there nis one problem:
>>> I cannot set the dns from the gui, AND once set, the dns is forgotten
>>> and has to be set anew
>>> each time rebooting. Thsi is what I do to set dns:
>>> 1) open a terminal window:
>>> 2)
>>> kjetil at familien:~$ cd /etc
>>> kjetil at familien:/etc$ ls -l resolv.conf
>>> lrwxrwxrwx 1 root root 31 2008-11-06 17:29 resolv.conf ->
>>> /etc/resolvconf/run/resolv.conf
>>> kjetil at familien:/etc$ cd /etc/resolvconf/run
>>> kjetil at familien:/etc/resolvconf/run$ sudo pico resolv.conf
>>> sudo: unable to resolve host familien
>>> [sudo] password for kjetil:
>>>
>>> In pico i write the line "nameserver 146.83.126.8"
>>> and then writes out and exit
>>>
>>> kjetil at familien:/etc/resolvconf/run$ sudo /etc/init.d/networking
>>> restart
>>> sudo: unable to resolve host familien
>>> * Reconfiguring network interfaces...
>>> [ OK ]
>>> kjetil at familien:/etc/resolvconf/run$
>>>
>>> Now internet works !
>>>
>>> There must be a better way??
>>>
>>> kjetil
>>> (absolutely nothing I do from the gui works)
>>>
>>
>> Have they changed so much in Intrepid? When I look at my resolve file,
>> the permissions appears more appropriate and as you see, I am walking
>> out
>> to the Internet via a router in which all the needed name servers are
>> listed. In that way, I only need to reference the router as name server.
>> This has always worked:
>> ////////////////////////////////////////
>> carl at cjfh3:~$ ls -l /etc/resolv.conf
>> -rw-r--r-- 1 root root 39 2008-11-08 17:17 /etc/resolv.conf
>> carl at cjfh3:~$ cat /etc/resolv.conf
>> search fiskeryd
>> nameserver 192.168.0.1
>> carl at cjfh3:~$
>> ////////////////////////////////////////
>>
>>
>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
--
Carl Friis-hansen
More information about the ubuntu-users
mailing list