[Klug-general] dns

Chris Roberts chris at naxxfish.eu
Tue Jan 29 15:48:35 UTC 2013


Of course, if you are using DHCP from your router - you can tell it
> what name servers to use and that might be what it dishes out with the
> leases.  Then again, it depends how the router is set up - it might try to
> give out it's own IP as the DNS server, and proxy all requests.
>
> Another thing to check is what's in /etc/nsswitch.conf under hosts: - this
> tells you what order names are resolved in (e.g. /etc/hosts, DNS
> resolv.conf, etc).
>
> Also, if you've got resolvconf installed, you may want to check it's
> settings,That will normally write to /run/resolvconf/resolv.conf, which is
> symlinked to /etc/resolv.conf
>
>
>
> On 29 January 2013 13:10, Paul Littlefield <info at paully.co.uk> wrote:
>
>> 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<https://twitter.com/paullittlefield>
>> Wiki: http://wiki.indie-it.com/**index.php?title=Special:**AllPages<http://wiki.indie-it.com/index.php?title=Special:AllPages>
>> Blog: http://www.littlefield.info
>> Photo: http://gravatar.com/**plittlefield<http://gravatar.com/plittlefield>
>> LinkedIn: http://uk.linkedin.com/in/**paullittlefield<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
>>
>> ______________________________**_________________
>> Kent mailing list
>> Kent at mailman.lug.org.uk
>> https://mailman.lug.org.uk/**mailman/listinfo/kent<https://mailman.lug.org.uk/mailman/listinfo/kent>
>>
>
>
>
> --
> Chris Roberts
> ~
> http://naxxfish.eu/
>
> No trees were killed to send this message, but a large number of electrons
> were terribly inconvenienced.
>



-- 
Chris Roberts
~
http://naxxfish.eu/

No trees were killed to send this message, but a large number of electrons
were terribly inconvenienced.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.lug.org.uk/pipermail/kent/attachments/20130129/8072e1a8/attachment.html>


More information about the Kent mailing list