[Klug-general] dns

Paul Littlefield info at paully.co.uk
Tue Jan 29 13:10:27 UTC 2013


On 29/01/13 12:52, james morris wrote:
> I'm using dhcpcd, but again, why I chose that over dhcp who knows?

OK, if you are not doing anything fancy in your house, then you should just leave the modem / router to do its' thing and control DHCP. This means that it will give you an IP address, tell you IT is the way out on to the internet, and tell your operating system what name servers to use.

In order to do this, you need a DHCP client to 'ask' a DHCP server for those details. In Linux it's dhcpcd. I have it running on mine...

paully at thinkpad ~ $ pidof dhcpcd
2053

Here is my name server file...
paully at thinkpad ~ $ cat /etc/resolv.conf
nameserver 212.159.6.10
nameserver 212.159.6.9

...which just happens to be PlusNet's nameservers.

Here is my way out onto the 'net...
paully at thinkpad ~ $ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.0.1     0.0.0.0         UG    0      0        0 eth0
127.0.0.0       127.0.0.1       255.0.0.0       UG    0      0        0 lo
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0

...so you can see the modem / router is on the classic 192.168.0.1 address.

> How would I test what it's 'dishing out'?

OK, what computers do you have where you are now?


-- 

Paul Littlefield

Telephone: 07801 125705
Email: info at paully.co.uk
Web: www.paully.co.uk
Skype: paul_littlefield
Twitter: https://twitter.com/paullittlefield
Wiki: http://wiki.indie-it.com/index.php?title=Special:AllPages
Blog: http://www.littlefield.info
Photo: http://gravatar.com/plittlefield
LinkedIn: http://uk.linkedin.com/in/paullittlefield

Paul Littlefield is environmentally responsible. Please consider the environment before printing this email. This email and any attachment is intended for the named addressee only, or person authorised to receive it on their behalf. The content should be treated as confidential and the recipient may not disclose this message or any attachment to anyone else without authorisation. If this transmission is received in error please notify the sender immediately and delete this message from your email system. All electronic transmissions to and from me are recorded and may be monitored. Finally, the recipient should check this email and any attachments for viruses. Paul Littlefield accepts no liability for any damage caused by any virus transmitted by this email.

Portage 2.1.11.31 (default/linux/amd64/10.0/desktop, gcc-4.7.2, glibc-2.15-r3, 3.6.11-gentoo x86_64)
Gentoo Base System release 2.1
This is a pre-release version of the X server from The X.Org Foundation.
latest version in the X.Org Foundation git repository.
X.Org X Server 1.13.1.901 (1.13.2 RC 1)
xfce-base/xfdesktop-4.10.0
x11-drivers/xf86-video-intel-2.20.19



More information about the Kent mailing list