Apt-Get

Dan layman at straitsarea.com
Thu Sep 7 12:39:54 UTC 2006


> Hi Guys
>
> On Thursday 07 September 2006 09:41, Richard Brown wrote:
>> I have two computers with the same problems. One now has a static IP
>> address and the other connects through dhcp. Does apt-get use its own
>> dns
>> servers when connecting to the net please. How can I set dns servers
>> please? What I would like to be able to do is to set the router address
>> and
>> also the dns addresses for my isp and tell apt-get to connect through
>> that.
> Further question to add! Does Ubuntu add on firewall rules please? Do I
> need
> to allow dns queries anywhere?
>
> Thanks.
> --
> Rich

Hi rich

You set the address for interfaces in /etc/network/interfaces.

$man interfaces

example:

ifaces eth0 inet static
address 1.2.3.4
netmask 255.255.255.0
gateway 1.2.3.4

You need your dns server addresses in /etc/resolv.conf

$man resolv.conf

example:

nameserver 1.2.3.4
nameserver 5.6.7.8

Good luck, Dan




More information about the ubuntu-users mailing list